Skip to main content
100%

Fork of Refactored Bar Chart

✓ Published0🌍 Public
SSergey Shulzhenko
Last edited Aug 15, 2023
Created on May 26, 2023

This example presents a horizontal bar chart ranking the ten most populous countries for 2020, using data from the United Nations World Population Prospects 2019. The visualization renders SVG bars with scales and axes, displaying population values in billions. Built with React and D3 v5, it uses `scaleBand` and `scaleLinear` for positioning, along with custom axis components that generate ticks and labels. The code also includes an axis label for “Population” and a tooltip formatting function that converts large numbers into concise notation.

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.

MIT Licensed

Similar vizzes