Skip to main content
100%

Scatter Plot with Menus

✓ Published1🌍 Public
AAziz Jaffrey
Last edited Apr 6, 2020
Created on Apr 6, 2020

This interactive scatter plot uses dropdown menus to explore relationships between attributes of the auto-mpg dataset. Selecting different columns from the menus updates the x- and y-axes via `d3.scaleLinear` and re-renders the circles through a general update pattern. The code leverages D3 v5’s `csv` for loading data, `dropDownMenu` for UI controls, and transitions with `delay` to animate points emanating from the center. Axes are drawn using `axisBottom` and `axisLeft` with gridlines, and menu selections trigger a full chart re-render.

AI-generated description

D3 course follow along.

MIT Licensed

Similar vizzes