Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart

Public visualization

Viewing a saved revision (read-only)

d2476c6d1777421985254a394ee86402

Bar Chart

0 stars0🌍 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.