Answers for "getElementAtEvent(e)"

0

getElementAtEvent(e)

canvas.onclick = function(evt){
    var activePoints = myLineChart.getElementsAtEvent(evt);
    // => activePoints is an array of points on the canvas that are at the same position as the click event.
};
Posted by: Guest on December-28-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language