🌍 Public
Viewing a saved revision (read-only)
3bf9331f8334429880b2a79b303f0128
Grouped Bar Chart
This example shows the ten most populous countries grouped by continent, with horizontal bars scaled by population. Each continent appears as a separate band containing its countries, with a title and shared x-axis. The visualization is built with React and D3 v6, using `scaleBand` for country placement, `scaleLinear` for population values, and SVG rectangles rendered via a custom `Marks` component. Data is loaded asynchronously from a CSV file using D3's `csv` method.
AI-generated descriptionShowing the 10 most populous countries, grouped by continent.