Grouped Bar Chart
✓ Published0🌍 Public
This example shows the 10 most populous countries in the world, grouped by continent, using horizontal bars whose lengths represent population. Each continent has its own chart panel with an internal band scale for its countries, all sharing a common linear population axis. The visualization is built with React and uses D3’s `scaleBand` and `scaleLinear` for layout, rendering marks as SVG rectangles. Data is loaded from a CSV file via `d3.csv`, and population labels are formatted using D3’s `format` API.
AI-generated descriptionShowing the 10 most populous countries, grouped by continent.
MIT Licensed