🌍 Public
Viewing a saved revision (read-only)
fad075ed9a524788b1990809f7e61236
Making a bar chart
This example shows a horizontal bar chart of population counts for ten countries, with bars ordered by the given CSV data. The visualization uses D3 v5’s `scaleLinear` and `scaleBand` to map population values and country names to pixel positions. Axis components are generated with `axisLeft` and `axisBottom`, while bars are rendered as SVG `rect` elements. The chart is built in a React-free, imperative style, reading from `data.csv` and styling via `styles.css`.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.