🌍 Public
Viewing a saved revision (read-only)
7d7319a2611a4431ba27bc9f54f90bf3
Making a barchart
This example shows a horizontal bar chart of country populations, with bars sorted by descending population and labeled along the left axis. The visualization uses D3 v5 within a React framework, rendering to SVG. Population values from the included `data.csv` are parsed and scaled using `scaleLinear` and `scaleBand`, with axes generated via `axisLeft` and `axisBottom`. Bars are appended as SVG rectangles, and styling is applied through CSS.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.