Skip to main content
100%

Cars Scatter Plot

✓ Published0🌍 Public
Sshungshung
Last edited Feb 23, 2020
Created on Feb 23, 2020
Forked from Scatter Plot

This scatter plot visualizes the relationship between horsepower and weight for cars from the auto-mpg dataset, with each circle representing a vehicle. The chart uses D3 v5’s `scaleLinear`, `axisBottom`, and `axisLeft` to construct axes with gridlines, and renders the points as SVG circles with steelblue fill and partial opacity. Data is loaded via `d3.csv` from an external URL and parsed into numeric values, while margins and inner dimensions position the plot within a 960x500 SVG canvas.

AI-generated description
MIT Licensed

Similar vizzes