Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published1🌍 Public
KKIRRAN P L
Last edited Dec 7, 2023
Created on Dec 7, 2023
Forked from Stylized Bar Chart

This bar chart displays the top 10 most populous countries using United Nations World Population Prospects 2019 data. The visualization uses React and D3 v5 with SVG rendering, employing `scaleBand` for the categorical y-axis and `scaleLinear` for the population x-axis. The code implements custom `AxisBottom` and `AxisLeft` components, with `Marks` rendering population bars as rectangles. A `format('.2s')` function converts large numbers to abbreviated labels (e.g., "B" for billions), while CSS styling with the Poppins font gives the chart its stylized appearance.

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