Skip to main content
100%

Cars Scatter Plot

✓ Published0🌍 Public
DDaniel Frey
Last edited Apr 26, 2020
Created on Apr 26, 2020
Forked from Cars Scatter Plot

This scatter plot visualizes the relationship between horsepower and weight for cars from the UCI Machine Learning Repository’s Auto MPG dataset. The code uses d3.csv to load the data and d3.scaleLinear with d3.extent to map the values, while d3.axisBottom and d3.axisLeft render the axes with tick lines and labels. Instead of typical circles, it draws a smooth curve through the points using d3.line with a curveBasis interpolation, appending an SVG path per data element. The title and axis labels are added as SVG text elements.

AI-generated description

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

MIT Licensed

Similar vizzes