Skip to main content
100%

Cars Scatter Plot

✓ Published2🌍 Public
WWarren-Fitzhenry
Last edited Dec 27, 2019
Created on Dec 27, 2019
Forked from Making a Bar Chart

This scatter plot from the auto-mpg dataset visualizes vehicle weight against horsepower, with each circle representing a car. The red, semi-transparent points reveal the relationship between these two variables. Built with D3 v5, the visualization uses `scaleLinear` for both axes, `axisLeft` and `axisBottom` for tick marks, and SVG `circle` elements for data points. The code applies a `nice()` function to scale domains and renders data fetched from a CSV via `csv()`. Axis labels and a title clarify the chart's purpose.

AI-generated description
MIT Licensed

Similar vizzes