🌍 Public
Viewing a saved revision (read-only)
bbbb5196c56b440f99be53da4f7d3f6c
Axes Works
This example shows a horizontal bar chart of the ten most populous countries from a UN population dataset for 2020, with labeled axes. The data loads via `d3.csv` from a GitHub gist, and the chart uses `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. React renders the SVG, generating tick marks and labels with `xScale.ticks()` and mapping data to `<rect>` elements.
AI-generated descriptionUses React to render data