Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Stylized Bar Chart

Public visualization

Viewing a saved revision (read-only)

ac024c418b7a4a7fb1ba75b815d7bb97

Fork of Stylized Bar Chart

0 stars0🌍 Public
VViktorLnt
Last edited Oct 22, 2021
Created on Oct 22, 2021
Forked from Stylized Bar Chart

This interactive bar chart displays the top 10 most populous countries for 2020, using data from the United Nations World Population Prospects 2019. Rendered as an SVG with React and D3 v5, the visualization employs `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with bars styled in a teal color. Axes are drawn using custom components, and hovering over a bar reveals a tooltip via an SVG `<title>` element, which formats population values using D3's `format` function (e.g., converting to billions).

AI-generated description

A program that shows the top 10 most populous countries as a bar chart.

Data: United Nations World Population Prospects 2019.