Making a barchart
✓ Published0🌍 Public
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.
MIT Licensed