Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reproducing the Bar Chart

Public visualization

Reproducing the Bar Chart

0 stars0🌍 Public
WWaseem Medhat
Last edited Dec 12, 2020
Created on Dec 12, 2020

This bar chart displays the top 10 most populous countries for the year 2020, with horizontal bars mapped to population values and country names on the y-axis. It is built with React and D3 v6, using `scaleBand` and `scaleLinear` for positioning, while SVG elements render the axes, bars, and labels. The data comes from a CSV of United Nations World Population Prospects 2019, loaded via D3’s `csv` function, and the chart includes formatted population labels plus a zero line for reference.

AI-generated description

Replicating from scratch the bar chart created in Datavis 2020 (episodes 21-24).

Comments

Sign in to join the discussion.

MIT Licensed