Hello sm,
Please use another variable for treeB‘s data, e.g.:
var data2 = [{
"id": "2",
"parentid": "1",
"text": "Tree B Hot Chocolate",
"value": "$2.3"
}, {
"id": "3",
"parentid": "1",
"text": "Tree B Peppermint Hot Chocolate",
"value": "$2.3"
}, {
"id": "4",
"parentid": "1",
"text": "Tree B Salted Caramel Hot Chocolate",
"value": "$2.3"
}, {
"id": "5",
"parentid": "1",
"text": " Tree B White Hot Chocolate",
"value": "$2.3"
}, {
"text": "Tree B Chocolate Beverage",
"id": "1",
"parentid": "-1",
"value": "$2.3"
}];
//alert(responseJson);
//console.log(data);
source_fact(data2);
Best Regards,
Dimitar
jQWidgets team
http://www.jqwidgets.com/