Skip to main content
100%

Cars Scatter Plot

✓ Published0🌍 Public
Ttrungngonptit
Last edited May 28, 2020
Created on May 25, 2020
Forked from Customizing Axes

This scatter plot displays the relationship between vehicle weight and horsepower for cars in the auto-mpg dataset, with each point representing an individual car. The visualization uses d3.csv to load the data, d3.scaleLinear with .nice() to map the weight and horsepower values to pixel coordinates, and d3.axisLeft and d3.axisBottom to render the axes. The chart is drawn as an SVG with semi-transparent steelblue circles, and the x-axis labels are formatted using d3.format to display numbers in abbreviated form.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes