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
AAamir Hameed mir
Last edited Apr 29, 2024
Created on Apr 29, 2024

This responsive bar chart displays the top 10 countries by total population as of January 1, 2024, using data from the UN population estimates. The chart uses D3's `scaleBand` and `scaleLinear` to map country names and population values, with bars rendered as SVG rectangles. It leverages the `observeResize` and `axes` functions from the `@curran/responsive-axes` library to adapt the chart’s dimensions and axis labels to the container’s size. The visualization includes an inner grey rectangle and explicit margins for a clean layout.

AI-generated description

A responsive bar chart.

Comments

Sign in to join the discussion.

MIT Licensed