Skip to main content
100%

Cars Scatter Plot

✓ Published1🌍 Public
WWhitney Hung
Last edited May 27, 2020
Created on May 27, 2020
Forked from Cars Scatter Plot

This scatter plot displays the relationship between horsepower and weight for a set of cars, with each circle representing a vehicle. The visualization uses D3.js v5’s `scaleLinear`, `axisLeft`, and `axisBottom` to map data values to pixel coordinates and render SVG axes with gridlines. Data is loaded from a CSV file via the `csv` function, parsed into numeric fields, and drawn as semi-transparent purple circles. The chart includes axis labels and a title, with margins calculated from the SVG’s dimensions.

AI-generated description
MIT Licensed

Similar vizzes