🌍 Public
Viewing a saved revision (read-only)
e17880c27b434250bfd18d0a2564b1d5
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.