Skip to main content
100%

Cars Scatter Plot

✓ Published1🌍 Public
VVeerle
Last edited Nov 3, 2020
Created on Nov 3, 2020
Forked from Scatter Plot

This scatter plot visualizes the relationship between horsepower and weight for 392 cars from the UCI Auto MPG dataset, with each semi-transparent purple circle representing a vehicle. The x-axis maps horsepower while the y-axis maps weight, using linear scales created with d3.scaleLinear and axes generated through d3.axisBottom and d3.axisLeft. The code loads CSV data via d3.csv, parses numeric columns, and renders SVG circles positioned with the scale functions. Axis labels and a title provide context, while tick marks extend across the plot to aid reading values. The visualization uses d3.v6 and follows a margin-based layout pattern.

AI-generated description

This Scatter Plot shows data about cars, from UCI Machine Learning Repository: Auto MPG Data Set

MIT Licensed

Similar vizzes