Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
Vvcabgar
Last edited May 15, 2022
Created on May 15, 2022
Forked from Stylized Bar Chart

This bar chart displays the top 10 most populous countries using data from the United Nations World Population Prospects 2019. The chart uses SVG rendering within a React component, leveraging D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the population x-axis. Axes are drawn with custom React components (`AxisBottom`, `AxisLeft`), while `Marks` renders each bar with a tooltip. Population values are formatted with D3’s `format` function, converting large numbers to billions with a "B" suffix.

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