Skip to main content
100%

Cars Scatterplot

✓ Published1🌍 Public
Mmla341
Last edited Jun 21, 2020
Created on Jun 21, 2020
Forked from Scatterplot

This scatterplot visualizes the relationship between car weight and miles per gallon (MPG) for vehicles from the UCI Auto MPG dataset. Each circle represents a car, with weight plotted on the x-axis and MPG on the y-axis, revealing a negative correlation. The visualization uses D3 v5’s `scaleLinear`, `axisLeft`, and `axisBottom` to construct the axes, while data is loaded via `csv` and rendered as SVG circles with gridlines. Axis labels and a title are added using D3 selections.

AI-generated description

*Per 100,000 habitants
This scatterplot shows the relationship between car weight and car mpg. Data was retrieved from UCI machine learning repository: Auto MPG Data.

MIT Licensed

Similar vizzes