Skip to main content
100%

D3 Cars Scatter Plot

✓ Published1🌍 Public
Aadbirch
Last edited Jan 23, 2023
Created on Jan 23, 2023
Forked from D3 Scatter Plot

This scatter plot displays the relationship between horsepower and weight for various car models from the auto-mpg dataset. Each purple, semi-transparent circle represents a single car, with its position determined by the linear scales mapped from the data. The visualization uses D3 v7's `scaleLinear`, `axisLeft`, and `axisBottom` APIs to construct the plot within an SVG canvas. The code loads data from a CSV file and parses numeric fields before rendering, with axis labels, grid lines, and a title styled via an external stylesheet.

AI-generated description
MIT Licensed

Similar vizzes