Chartjs-Create a chartjs pie chart using json data

0👍

The issue is with the structure of the data after working on it in the loop

Change the loop to the following:

$.each(obj, function (i, data) {
   jsonData.push({ A: data.countAgree, B: data.countSomewhatAgree, C: data.countDisagree, Q: 'Question' + (i + 1) });
});

Leave a comment