🌍 Public
Viewing a saved revision (read-only)
9739b6c844854cd7a9e72c3e306a298a
Stylized Bar Chart
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 descriptionMaking a Bar Chart with the the UN World Population Prospects Dataset