Skip to main content
100%

MPG Scatter Plot with Menus

✓ Published0🌍 Public
AAndre J Denais
Last edited Jul 30, 2021
Created on Jul 30, 2021

This interactive scatter plot visualizes the MPG dataset, allowing users to explore relationships between quantitative and categorical variables through dropdown menus that select the X and Y axes. Built with D3 v6, it uses a reusable chart pattern with `selection.join` for smooth enter, update, and exit transitions, animating circle positions and radii over 1000ms. The visualization leverages `scaleLinear` and `scalePoint` for axis scaling, with SVG rendering and custom menu components dispatching change events to update the plot dynamically.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes