Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot with Menus

Public visualization

Viewing a saved revision (read-only)

a3990e51e8994e3ba5eff16b41941506

Scatter Plot with Menus

0 stars0🌍 Public
CCarloWK1202
Last edited Aug 3, 2022
Created on Aug 2, 2022

This interactive scatter plot explores relationships between attributes of classic cars, including horsepower, weight, and acceleration, using data from the auto-mpg dataset. Two dropdown menus allow the user to select which columns to plot on the x- and y-axes, dynamically re-rendering the chart. Built with d3.v5, the visualization uses SVG and animated transitions. The code leverages d3's `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` for scales and axes, along with a custom `dropdownMenu` module and a `scatterPlot` component that animates circles over two seconds.

AI-generated description

scatterplot shows data about cars with menus