why is this, i am having a trouble in plotting a data in bar highchart. I am using this chart.series[i].addPoint(data[i][\'total_check\']);
but when i alert
you data seem to be strings, you need to parse them to be numbers.
You can use this: Convert argument to number
function getbarseries(month) {
$.ajax({
url: siteurl+"patients_report/bardataclinic/"+month,
type: "POST",
dataType: "JSON",
success: function(data) {
for(var i in data) {
chart.series[i].addPoint(Number(data[i]['total_check']));
}
}
});
}