Skip to main content
100%

Stylized Bar Chart

✓ Published0🌍 Public
Mmarksampras
Last edited May 8, 2020
Created on May 8, 2020
Forked from Stylized Bar Chart

This stylized bar chart displays the top 10 most populous countries for 2020, sourced from the United Nations World Population Prospects 2019 dataset. Rendered as an SVG using React and D3 v5, the chart maps population values horizontally with a linear scale, while countries are positioned vertically using a band scale. The bars are styled with a distinctive teal fill, and the chart includes custom axes, tick formatting that abbreviates large numbers (e.g., "1.4B"), and interactive tooltips showing exact values. The code leverages `scaleBand`, `scaleLinear`, `max`, and `format` from D3 to build the visualization.

AI-generated description

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

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes