Skip to main content
100%

Bar Chart

✓ Published0🌍 Public
Nnghosh319
Last edited May 6, 2023
Created on May 6, 2023
Forked from Stylized Bar Chart

This bar chart displays the top 10 most populous countries based on 2020 UN Population data, with horizontal bars showing each country’s population count. The visualization uses React with D3 v5’s `scaleBand` and `scaleLinear` to map country names and population values to screen coordinates. SVG `<rect>` elements render the bars, while custom axis components generate tick marks and labels using D3’s `ticks()` and `format()` APIs, with population values formatted using the SI prefix format (e.g., “1.4B”).

AI-generated description

A program that shows the top 10 most populous countries as a bar chart.

MIT Licensed

Similar vizzes