Skip to main content
Public

Share visualization

Loading preview…

Fork of Responsive Bar Chart

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Responsive Bar Chart

0
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