Barchart
✓ Published1🌍 Public
This example shows the ten most populous countries in 2020 as horizontal bars, with bar length proportional to population. It uses React hooks to fetch and parse the United Nations population CSV via D3’s `csv` loader, then renders SVG rectangles scaled by `scaleLinear` for the x-axis and `scaleBand` for the categorical y-axis. The chart updates once the data arrives, displaying a loading message before rendering.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities and uses React to render the data as a radial burst!
MIT Licensed