Skip to main content
100%

Cars

✓ Published0🌍 Public
FFernando Godoy
Last edited Aug 15, 2019
Created on Aug 15, 2019
Forked from Cars

This example shows the relationship between horsepower and weight for a dataset of cars, with each car represented as a red, semi-transparent circle. The scatterplot uses D3 v5’s `scaleLinear` to map the data to SVG coordinates, with axes generated by `axisBottom` and `axisLeft`. It loads CSV data from a remote URL, parses numeric fields, and renders circles positioned via `xScale` and `yScale`. The chart includes custom axis labels, a title, and tick formatting using D3’s `format` with a custom unit replacement.

AI-generated description
MIT Licensed

Similar vizzes