Skip to main content
100%

Cars Scatterplot

✓ Published0🌍 Public
JJadeITNT
Last edited Dec 1, 2021
Created on Nov 19, 2021
Forked from Scatterplot

This scatterplot displays the relationship between vehicle weight and horsepower for a dataset of cars, with each circle representing an individual car. The visualization uses D3 v7 to load the auto-mpg CSV data, then employs `scaleLinear`, `axisBottom`, and `axisLeft` to construct the axes. The code renders SVG circles with a red fill and 50% opacity, while library functions like `extent` and `nice` help determine the scales. Title and axis labels are added directly to the SVG group elements.

AI-generated description
MIT Licensed

Similar vizzes