block by Kcnarf 48c9ec6eb80e3eafdb3250f4b6d6380c

distance-limited Voronoi Interaction II

Full Screen

This block is based on Step 3 - Voronoi Scatterplot - Tooltip attached to circle from @NadiehBremer

The Voronoi technics (used to improve interactive experience) is something I like. But I’m quite confused when the mouse is far away from points/subjectsOfMatter. In the original example, this situation arises in the viz’s top-left and bottom-right corners.

This block attempts to overcome this issue by:

For the sake of illustration, interactive areas appear in (very) light blue. Voronoï cells and interactive zones would not be rendered in the final viz.

The implementation in this block uses a clipPath on the voronoi layer in order to cut off too large cells (cf. lines 128->142 of script.js). Other ways could be:

Acknowledgments to:

script.js

index.html

pym.min.js