Skip to main content
100%

Scatter Plot with Menus

✓ Published1🌍 Public
Jjlongwellchc
Last edited Sep 27, 2019
Created on Sep 18, 2019
Forked from Cars Scatter Plot

This scatter plot displays the relationship between pairs of numeric variables from the auto-mpg dataset. Users select the x-axis and y-axis columns via two dropdown menus, which trigger re-rendering of the plot’s axes and circles. Built with D3 v5, the visualization uses `extent`, `scaleLinear`, `axisBottom`, and `axisLeft` to compute scales and axes, while `transition().duration(2000)` animates circles to their new positions. A custom `dropdownMenu` module handles menu creation, and the SVG output updates dynamically on each menu change.

AI-generated description

Scatter plot with Select boxes that control the x and y data sets.

MIT Licensed

Similar vizzes