Skip to main content
100%

Cars Scatter Plot

✓ Published6🌍 Public
MMajaha21
Last edited Apr 7, 2021
Created on Apr 6, 2021
Forked from Customizing Axes

This scatter plot shows the relationship between horsepower and weight for a collection of cars, with each car represented as a red, semi-transparent circle. The visualization uses D3.js (v6) to load the auto-mpg dataset via `d3.csv`, parse numerical values, and render the chart as an SVG. Linear scales from `d3.scaleLinear` map weight and horsepower to x and y coordinates, while `d3.axisBottom` and `d3.axisLeft` generate the axes with gridlines. Axis labels and a title are added as text elements, and CSS styles the circles, ticks, and labels for visual clarity.

AI-generated description
MIT Licensed

Similar vizzes