Skip to main content
100%

Cars Scatter Plot

✓ Published1🌍 Public
AAlex Reitz
Last edited Mar 27, 2020
Created on Mar 27, 2020
Forked from Scatter Plot

This example visualizes the relationship between horsepower and weight for cars, plotting each vehicle as a semi-transparent red circle. The data comes from the auto-mpg dataset loaded via D3’s `csv` function. Using D3 v5 scales and axes, the scatter plot encodes horsepower on the x-axis and weight on the y-axis, with labeled axis titles and a header. The chart uses `scaleLinear`, `extent`, `axisBottom`, and `axisLeft` APIs to map values and render the grid lines, all drawn as SVG elements.

AI-generated description
MIT Licensed

Similar vizzes