Skip to main content
100%

Cars Scatter Plot with D3.js

✓ Published2🌍 Public
CCarloWK1202
Last edited Jul 7, 2022
Created on Jul 6, 2022

This scatter plot visualizes the relationship between miles per gallon and model year for a dataset of cars. The visualization uses red, semi-transparent circles to represent individual vehicles, with axes labeled for MPG and Year. The code leverages D3.js v7 functions including `csv` for data loading, `scaleLinear` for scaling, and `axisBottom`/`axisLeft` for axis generation. The SVG rendering includes grid lines, axis labels, and a title, with data parsed from an external CSV file.

AI-generated description
MIT Licensed

Similar vizzes