I’m trying to populate the chart datapoints with data from database using PHP and Json.
var exam_grades1 = <?php echo json_encode($exam_grades1 );?>;
for(var key in exam_grades1) {
var value = exam_grades1[key];
}
Then I wanna be able to do something like this:
...
dataPoints: [
{ label: key, y: parseFloat(value) },
....
Any help will be greatly appreciated.
-
This topic was modified 9 years, 10 months ago by mikespider.