📜  getElementAtEvent(e) - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:02.953000             🧑  作者: Mango

代码示例1
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.
};