Skip to main content
100%

Scatter Plot with Menus

✓ Published1🌍 Public
JJacob van Lingen
Last edited May 19, 2020
Created on May 19, 2020

This interactive scatter plot lets users explore the relationship between any two numeric columns of the auto-mpg dataset by selecting them from two dropdown menus. The visualization updates smoothly, with circles animating from the center to their new positions using D3’s `transition()`. The code uses D3 v5’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` for axes, and implements the menus with a custom `dropdownMenu` function. The data is loaded via D3’s `csv` from a remote URL, and each point is rendered as an SVG circle.

AI-generated description
MIT Licensed

Similar vizzes