Skip to main content
100%

Population over the years

✓ Published1🌍 Public
MMark Jones
Last edited Dec 7, 2019
Created on Dec 2, 2019
Forked from Stylized Bar Chart

A horizontal bar chart displays the populations of the top 15 countries for a selected year, using data from the United Nations World Population Prospects 2019. A dropdown menu lets the viewer change the year, updating the bar lengths accordingly. The visualization uses React with D3 v5 scales (`scaleBand` and `scaleLinear`) to position bars and axes, and renders SVG elements for the chart. Population values are formatted using D3's `format` with SI prefixes, and each bar includes a tooltip showing the exact value.

AI-generated description

Show the top 10 countries populations over a range of years. Allow the user to select the year to view.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes