Skip to main content
100%

Cars ScatterPlot

✓ Published1🌍 Public
Ggabrielribeirob
Last edited Sep 2, 2021
Created on Sep 1, 2021

This visualization displays a scatterplot of cars, mapping horsepower on the x-axis against weight on the y-axis, with each vehicle represented by a semi-transparent red circle. The chart includes labeled axes, tick marks, and a title, providing a clear view of the correlation between these two attributes. The code uses D3 v7, leveraging `scaleLinear`, `extent`, `axisBottom`, and `axisLeft` to construct the scales and axes, while `csv` loads the auto-mpg dataset from a remote URL. SVG circles are appended and positioned using the scaled x and y values, with styling applied via external CSS.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes