November 2017
Beginner to intermediate
298 pages
6h 47m
English
At this point, you have all tools at hands to implement a hover. Now, you will need to make it happen. To wire it all up, you need to do the following steps:
Listening on mousemove is easy; you just need to perform the following command:
canvas.on('mousemove', highlightPicking);
Done. The first thing we will do in highlightPicking() is translate the mouse position on the main Canvas to the coordinates on the hidden Canvas:
function highlightPicking() { var pos = d3.mouse(this); ...Read now
Unlock full access