Skip to main content
100%

Stylized Bar Chart

✓ Published1🌍 Public
SSubliminal_[var]
Last edited Jul 29, 2021
Created on Jul 29, 2021
Forked from Hello VizHub

This stylized horizontal bar chart displays the ten most populous countries from the UN World Population Prospects 2019 dataset, ranking them by estimated 2020 population. Built with React and D3 v7, the visualization uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. The SVG render includes custom `AxisBottom` and `AxisLeft` components, with values formatted using D3's `format` function to abbreviate large numbers (e.g., converting "G" to "B"). Population values are converted from strings to numbers via `+d['2020'] * 1000` before being mapped to bar widths.

AI-generated description

Making a Bar Chart with the the UN World Population Prospects Dataset

MIT Licensed

Similar vizzes