Skip to main content
100%

MTCARS Scatter Plot with Menus

✓ Published1🌍 Public
BBizmundo
Last edited Oct 7, 2019
Created on Oct 5, 2019

This interactive scatter plot visualizes the mtcars dataset, letting users select which attribute (mpg, cyl, disp, hp) to plot on each axis. The chart displays circles for each car, with tooltips showing the x-axis value. Using React with D3 v5, the code implements a `Dropdown` component to update state and re-render the SVG. The `scaleLinear` function scales the data, while `AxisBottom`, `AxisLeft`, and `Marks` modules handle the visualization's rendering.

AI-generated description

An interactive scatter plot of mtcars Dataset.

MIT Licensed

Similar vizzes