Skip to main content
100%

Cars: scatter plot

✓ Published2🌍 Public
AAnthony-coding
Last edited Nov 25, 2019
Created on Nov 25, 2019

This scatter plot displays the relationship between horsepower and fuel efficiency (MPG) for a dataset of cars, with each circle representing a vehicle. The visualization uses D3 v5’s `scaleLinear` and `extent` functions to map the data to SVG coordinates, while `axisLeft` and `axisBottom` create labeled axes with gridlines. The circles are semi-transparent yellow, and the chart includes a title and rotated axis labels styled via CSS. Data is loaded asynchronously from a CSV file using D3’s `csv` method.

AI-generated description

A scatter plot represeting horsepower Vs MPG.

MIT Licensed

Similar vizzes