Skip to main content
100%

Cars Scatterplot

✓ Published1🌍 Public
Bbcwein
Last edited Mar 29, 2020
Created on Mar 29, 2020
Forked from Scatterplot

This scatterplot shows the relationship between horsepower and weight for a collection of cars, with each car represented as a red, semi-transparent circle. The visualization uses D3 v5 to load the auto-mpg dataset from a CSV file, parse its numeric fields, and render the plot as SVG. The `d3.scaleLinear` and `d3.extent` functions map the data to a 960×500 canvas, with gridlines and labeled axes drawn via `d3.axisLeft` and `d3.axisBottom`. Styling is applied through CSS, including circle opacity and tick label formatting.

AI-generated description
MIT Licensed

Similar vizzes