🌍 Public
MTCARS Scatter Plot with Menus
An interactive scatter plot of the classic mtcars dataset lets viewers compare any two of four car attributes—mpg, cyl, disp, and hp—by selecting each axis from a dropdown menu. Built with React and D3 v5, it renders SVG circles whose positions are calculated with `scaleLinear` and `extent`, and axes are drawn using the custom `AxisBottom` and `AxisLeft` components. The plot displays values with a `siFormat` tick label and includes hover tooltips via SVG `<title>` elements.
AI-generated descriptionAn interactive scatter plot of mtcars Dataset.
MIT Licensed
Comments
Sign in to join the discussion.