Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Bar Chart to Scatter Plot

Public visualization

Viewing a saved revision (read-only)

6798b040c86e4e36907f5b9db1bde1a4

Cars Bar Chart to Scatter Plot

0 stars0🌍 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.