Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of United Nations Bar Chart with SVG

Public visualization

Fork of United Nations Bar Chart with SVG

0 stars1🌍 Public
Mmanishcheruku
Last edited Mar 10, 2023
Created on Mar 10, 2023

This bar chart displays the top 10 most populous countries in the world for 2020, using the `United Nations` population dataset from a CSV file. It combines D3 v7 and React, where `d3.scaleBand` and `d3.scaleLinear` map country names to the y-axis and population values to the x-axis. Each bar is labeled with the country’s name, and a flag image, fetched from an external SVG collection, is placed next to each bar, with its width derived from the bar’s height to maintain aspect ratio.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed