Skip to main content
Public

Share visualization

Loading preview…

Fork of Simple 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 Simple Bar Chart

0
KKusumaKumariDama@my.unt.edu
Last edited Mar 20, 2024
Created on Mar 20, 2024
Forked from Simple Bar Chart

This example visualizes the top 10 most populous countries as of January 1, 2024, using a horizontal bar chart. It highlights each country’s total population in thousands, sorted in descending order to emphasize the largest nations. The visualization is built with D3.js, employing `scaleBand` for categorical country labels and `scaleLinear` for population values, while custom axis-label components from `@curran/axis-labels` clarify the axes. Data comes from the `@curran/un-population-estimates-2024` dataset, filtered to include only country-level entries. The chart renders SVG rectangles for bars, with a gray inner background, and uses D3’s selection and join methods to bind data efficiently.

AI-generated description

A bar chart showing the top 10 most populous countries on Earth as of January 1st 2024.

Challenge

  • Fork this viz and modify it to show your own data

Comments

Sign in to join the discussion.

MIT Licensed