Skip to main content
100%

Cars Scatter Plot: Horsepower vs. Weight

✓ Published2🌍 Public
Jjblaskovich
Last edited May 8, 2020
Created on May 3, 2020
Forked from Making a Bar Chart

This scatter plot visualizes the relationship between horsepower and weight for cars from the UCI Machine Learning Repository's Auto MPG dataset. Each blue semi-transparent circle represents a car, positioned by its horsepower on the x-axis and weight on the y-axis, revealing a positive correlation between the two variables. The visualization uses D3 v5 APIs such as `csv`, `scaleLinear`, `axisBottom`, and `axisLeft` to load data, scale the axes, and render the SVG plot. Axis labels and a title are added, with gridlines provided via tick sizes, all styled through external CSS.

AI-generated description

This scatter plot shows data about cars, from the [UCI Machine Learning Repository: Auto MPG Data Set] (http://mlr.cs.umass.edu/ml/datasets/Auto+MPG).

MIT Licensed

Similar vizzes