Skip to main content
100%

Cars Scatter Plot

✓ Published0🌍 Public
Yykki
Last edited Jan 17, 2019
Created on Jan 17, 2019
Forked from Cars Scatter Plot

This scatter plot visualizes the relationship between horsepower and weight for cars, using data from the UCI Machine Learning Repository’s Auto MPG dataset. Each red, semi-transparent circle represents a car, with its position determined by horsepower on the x-axis and weight on the y-axis, both scaled using `d3.scaleLinear`. The code loads the CSV data with `d3.csv`, parses numeric fields, and renders axes via `d3.axisLeft` and `d3.axisBottom` with tick marks. SVG circles are appended to the chart, and labels for axes and title are added using D3’s selection methods.

AI-generated description

This scatter plot shows data about cars, from UCI Machine Learning Repository: Auto MPG Data Set.

MIT Licensed

Similar vizzes