Fork of Responsive Bar Chart
✓ Published0🌍 Public
This bar chart visualizes the top 10 most populous countries, with each bar representing a country's total population in thousands. The data comes from the UN population estimates for 2024, filtered to include only countries and sorted in descending order. The visualization uses D3’s `scaleBand` for the categorical x-axis and `scaleLinear` for the population y-axis, with `max` computing the domain. The `@curran/responsive-axes` library handles the axes, while `observeResize` ensures the chart adapts to container dimensions. An inner rectangle highlights the plot area, and bars are drawn via `rect` elements.
AI-generated descriptionA responsive bar chart.
MIT Licensed