🌍 Public
Viewing a saved revision (read-only)
d3fd86802afa41abb4c98a3033ab33d4
Cars: scatter plot
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 descriptionA scatter plot represeting horsepower Vs MPG.