Skip to main content
Public

Share visualization

Loading preview…

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

0
PPatric Tysk
Last edited Nov 13, 2021
Created on Nov 13, 2021

This bar chart displays the top 10 most populous countries from the United Nations World Population Prospects 2019 dataset, with countries on the y-axis and population on the x-axis. The visualization uses React to render SVG elements, with the `d3.scaleBand` and `d3.scaleLinear` functions from D3 v5 handling the axis scaling. It includes custom React components for the axes and bars, with the data loaded asynchronously via D3’s `csv` function. The chart also shows a loading message before the data arrives.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.

Comments

Sign in to join the discussion.

MIT Licensed