Skip to main content
100%

Stylized Bar Chart

✓ Published0🌍 Public
Aandrewtran1991
Last edited Jan 29, 2020
Created on Jan 29, 2020
Forked from Stylized Bar Chart

This stylized bar chart displays the top 10 most populous countries in 2020 using data from the United Nations World Population Prospects 2019. The visualization uses React with D3 v5’s `scaleBand` and `scaleLinear`, rendering bars as SVG rectangles with tooltips via the `title` element. Horizontal grids and labels are drawn from `AxisBottom` and `AxisLeft`, which utilize `xScale.ticks()` and `yScale.domain()`. The x-axis formats population values with the `format('.2s')` function, replacing ‘G’ with ‘B’ for billions. Data loads asynchronously via `csv`, with the top ten entries sliced after parsing.

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