🌍 Public
Viewing a saved revision (read-only)
24ff8e6a507e46ff9404514378bd3f02
Fork of Responsive Bar Chart
This example shows a horizontal bar chart of the ten most populous countries, using population estimates as of January 1, 2024. It highlights the ranking of countries by total population, with the bars sorted in descending order. The visualization is built with D3.js, using the `select` and `descending` functions, and it responds to container resizing via the `observeResize` utility. Data is sourced from the `@curran/un-population-estimates-2024` package, and the chart is rendered as an SVG with configurable margins, labels, and inner rectangle styling.
AI-generated descriptionA responsive bar chart.