Skip to main content
Public

Share visualization

Loading preview…

Countries 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

Countries Bar Chart

1
TTatyana Milanova
Last edited Oct 5, 2023
Created on Oct 4, 2023
Forked from Pathetic Bar Chart

This chart visualizes the top 10 most populous countries based on United Nations World Population Prospects 2019 data. It shows horizontal bars representing each country's population, with the x-axis labeled "Population." The visualization is created using React and D3 v5, with SVG rendering. The code uses d3.scaleBand for the categorical y-axis, d3.scaleLinear for the continuous x-axis, and d3.csv to load the dataset. Axis components and marks are defined as separate React components, with tooltips displaying formatted population values.

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