Skip to main content
100%

Cars Scatter Plot

✓ Published0🌍 Public
Sshreeshb51
Last edited Mar 16, 2021
Created on Mar 16, 2021
Forked from Customizing Axes

This scatter plot visualizes the relationship between miles-per-gallon (mpg) and acceleration for a dataset of cars, with each car represented as a semi-transparent dark red circle. The visualization loads data from a CSV file using D3’s `csv` method, then renders the plot with `scaleLinear`, `axisBottom`, and `axisLeft`. It includes grid lines, axis labels, and a title, all positioned within an SVG. The code uses D3 v5 and demonstrates data parsing, scaling, and axis configuration in a straightforward scatter plot layout.

AI-generated description

Learned from freeCodeCamp.org.

MIT Licensed

Similar vizzes