Skip to main content
100%

Scatter plot with menus

✓ Published0🌍 Public
MMatthiasVanCampen
Last edited Feb 14, 2020
Created on Feb 13, 2020
Forked from Cars Scatter plot

A scatter plot with dropdown menus allows users to explore relationships between different columns of an automotive dataset. The plot visualizes the auto-mpg dataset loaded from a CSV file, with selectable X and Y axes. D3's `scaleLinear` and `extent` functions compute the axis scales, while `dropdownMenu` components built with D3's selection API manage axis column choices. The scatter plot uses SVG circles animated with a 2-second staggered transition, and axes are rendered using `axisBottom` and `axisLeft` with tick lines and labels.

AI-generated description

export const dropdownMenu = (selection, props) =>{ const { options } = props; }

MIT Licensed

Similar vizzes