Skip to main content
100%

Stylized Bar Chart

✓ Published476🌍 Public
CCurran Kelleher
Last edited Dec 15, 2020
Created on Sep 18, 2019

This example displays the top 10 most populous countries as a horizontal bar chart, with country names on the y-axis and population on the x-axis. It is built using React and D3 v5, relying on `scaleBand` and `scaleLinear` for positioning, and SVG for rendering. The data comes from the United Nations World Population Prospects 2019 dataset, loaded via `d3.csv`. Axis components (`AxisBottom`, `AxisLeft`) and bar marks (`Marks`) are custom React components, with tooltips provided by SVG `<title>` elements and population labels formatted using `d3.format`.

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