🌍 Public
Viewing a saved revision (read-only)
d187a6f64f82404cb3f6f61c87630ee7
Fork of Fork of Fork of Responsive Bar Chart
This example displays a responsive bar chart of the top 10 countries by total population, using data from the UN Population Estimates 2024 dataset. It renders horizontal bars with D3 scales and axes, adapting to its container’s size via `observeResize`. The chart uses `scaleBand` and `scaleLinear` from D3, and the `axes` utility from `@curran/responsive-axes` to generate labeled axes. A light gray inner rectangle fills the plotting area behind the bars.
AI-generated descriptionA responsive bar chart.