Skip to main content
100%

Scatterplot with Menus

✓ Published0🌍 Public
Ccornshoots
Last edited Mar 19, 2021
Created on Mar 17, 2021
Forked from Cars Scatterplot

An interactive scatterplot displaying the auto-mpg dataset, with dropdown menus that let the user select which data columns to plot on the x and y axes. The visualization updates smoothly with a staggered transition, animating each circle from the center to its new position. The code uses D3 v5's `csv`, `scaleLinear`, `axisLeft`, `axisBottom`, and `extent` functions, along with a custom `dropdownMenu` component that binds options to menu elements. SVG rendering handles the plot, with axis labels and gridlines styled via CSS.

AI-generated description
MIT Licensed

Similar vizzes