Skip to main content
100%

Fork of Responsive Bar Chart

✓ Published0🌍 Public
Ttejasviteegala@my.unt.edu
Last edited Mar 21, 2024
Created on Mar 21, 2024

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 description

A responsive bar chart.

MIT Licensed

Similar vizzes