Skip to main content
100%

Cars Bar Chart to Scatter Plot

✓ Published0🌍 Public
MMaria Zgoba
Last edited Nov 8, 2019
Created on Nov 8, 2019
Forked from Cars Scatter Plot

This example visualizes the relationship between horsepower and weight for a dataset of cars, displaying bars for each vehicle where the height corresponds to weight. The chart uses D3 v5 to load the auto-mpg CSV data and renders an SVG with a bar chart, using `scaleBand` for the categorical horsepower axis and `scaleLinear` for the weight axis. The code includes commented-out sections for alternative scatter plot configurations and axis labels, showing how the visualization can be adapted.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes