Skip to main content
100%

Scatterplot with Voronoi

✓ Published0🌍 Public
AaiMojica10
Last edited Apr 30, 2018
Created on Apr 30, 2018

This interactive scatterplot uses an invisible D3 Voronoi grid overlaid on the circles to make tooltips easier to trigger. While the tooltips are attached to the circles themselves, the grid determines which circle is active based on the mouse position, improving the interactive experience. The visualization displays customer transactions by type on a log-scaled x-axis (creation date) and linear y-axis (transaction value), with circles colored by transaction type. Clicking a legend item filters the data to show only that transaction type. Hovering over any point triggers a popover with details. Built with D3 v3 and rendered as SVG with animation, the chart is based on a fork of a life expectancy vs. GDP per capita block by nbremer and MattDionis.

AI-generated description

This scatterplot is the final visual of my blog on Using a D3 Voronoi grid to improve a chart's interactive experience in which the tooltip is attached to the circles while the event is triggered by an invisible Voronoi grid that lies over the scatterplot. It also has some other features such as a filtering function when clicking on a region in the legend

forked from <a href='http://bl.ocks.org/nbremer/'>nbremer</a>'s block: <a href='http://bl.ocks.org/nbremer/801c4bb101e86d19a1d0'>Final - Voronoi Scatterplot - Life expectancy vs GDP per capita</a>

forked from <a href='http://bl.ocks.org/MattDionis/'>MattDionis</a>'s block: <a href='http://bl.ocks.org/MattDionis/e532e44f1b6edea60ab3'>Final - Voronoi Scatterplot - Life expectancy vs GDP per capita</a>

forked from <a href='http://bl.ocks.org/MattDionis/'>MattDionis</a>'s block: <a href='http://bl.ocks.org/MattDionis/7ad3724778ccd896203b'>Final - Voronoi Scatterplot - Life expectancy vs GDP per capita</a>

forked from <a href='http://bl.ocks.org/MattDionis/'>MattDionis</a>'s block: <a href='http://bl.ocks.org/MattDionis/5114e2dfdc24143cbd77'>Final - Voronoi Scatterplot - Life expectancy vs GDP per capita</a>

forked from <a href='http://bl.ocks.org/MattDionis/'>MattDionis</a>'s block: <a href='http://bl.ocks.org/MattDionis/0477fd73b12753d17194'>Voronoi Scatterplot</a>

mit Licensed

Similar vizzes