Answers for "line graph view click event"

0

line graph view click event

document.getElementById("myChart").onclick = function(evt) {
    var active = myChart.getElementAtEvent(event)[0]._index;
    var value = myChart.getElementAtEvent(event)[0]._chart.config.data.labels[active];
    alert(value);
};
Posted by: Guest on February-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language