Skip to main content
100%

Grouped Bar Chart

✓ Published0🌍 Public
CChristian Magelssen
Last edited Oct 22, 2020
Created on Oct 22, 2020
Forked from Grouped Bar Chart

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 description

Showing the 10 most populous countries, grouped by continent.

MIT Licensed

Similar vizzes