Cars Scatter Plot
✓ Published2🌍 Public
A scatter plot displays the relationship between horsepower and weight for cars from the auto-mpg dataset, with each point representing a vehicle. The visualization uses D3 v5's `scaleLinear`, `axisBottom`, and `axisLeft` to map the quantitative variables and render axes with gridlines. Red semi-transparent circles are positioned using `xScale` and `yScale` based on the data's extent, while SVG text elements label the axes and title. The code loads data via `csv` from a remote URL and applies `nice()` to round the scale domains.
AI-generated descriptionMIT Licensed