Skip to main content
100%

Cars Scatter Plot

✓ Published1🌍 Public
Ppplomith
Last edited Jun 5, 2021
Created on Mar 7, 2021
Forked from Course D3

This scatter plot visualizes the relationship between horsepower and weight for a dataset of cars, with each circle representing an individual vehicle. The chart uses d3.scaleLinear for both the x and y axes, with d3.extent to set the domains based on the minimum and maximum values in the data. d3.axisBottom and d3.axisLeft create the labeled axes, while circles, sized with a fixed radius, are positioned using the scaled coordinates. The data comes from the auto-mpg CSV file, and the visualization is rendered as an SVG.

AI-generated description
MIT Licensed

Similar vizzes