Skip to main content
100%

Fork of Responsive Bar Chart

✓ Published0🌍 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.

MIT Licensed

Similar vizzes