I am playing with a simple tutorial for drawing line in HTML5
canvas. Since, it is based on jQuery, it is easy to add lots of effects to the drawing.
How can I make the point clickable/hoverable to add jquery effects upon click/hover (mouseenter/mouseleave)? The points are drawn by
c.fillStyle = '#333';
for(var i = 0; i < data.values.length; i ++) {
c.beginPath();
c.arc(getXPixel(i), getYPixel(data.values[i].Y), 4, 0, Math.PI * 2, true);
c.fill();
}
How to add jquery selector? Basically, I want to show the point coordinates upon click or hover.