Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Responsive Bar Chart

Public visualization

Fork of Responsive Bar Chart

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed