Hello,
I try to create my chart when use a JSON data source like this : https://canvasjs.com/javascript-charts/json-data-api-ajax-chart/
But I have a problem to use label in X with this function :
function addData(data) {
for (var i = 0; i < data.length; i++) {
dataPoints.push({
x: "label":"" + data[i].heure + "", ==> problem
y: data[i].units
});
}
chart.render();
}
How to use a label with this ?
Thanks for you help
Best Regards,