Building The Series Of A Kendo Chart By Looping Through The Json Data?
I am having some difficulty figuring out how to solve this problem. Basically I have some JSON returned that looks like this: { 'pie': { 'slice': [ { '-ch': '1', '-val':
Solution 1:
I figured it out.
set data: dataVariable and define dataVariable like this:
for (var i = 0; i < json.Slices.length; i++) {
dataVariable.push({
category: json.Slices[i].Ch,
value: parseFloat(json.Slices[i].val)
});
};
Post a Comment for "Building The Series Of A Kendo Chart By Looping Through The Json Data?"