🌍 Public
Viewing a saved revision (read-only)
68a07ed703b1456e9a5e9aaa6df6bf04
MTCARS Scatter Plot with Menus
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 descriptionAn interactive scatter plot of mtcars Dataset.