Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of United Nations Bar Chart with SVG

Public visualization

Viewing a saved revision (read-only)

274b65a7b52f4718a6f594cb53ece2af

Fork of Fork of United Nations Bar Chart with SVG

0 stars0🌍 Public
WwhatanakKean
Last edited Sep 22, 2023
Created on Sep 22, 2023

This example displays the top 10 most populous countries in 2019 as a horizontal bar chart, using national flags placed at the end of each bar to visually identify the corresponding country. The visualization is built with React and D3 v7, where `d3.csv` loads the UN population dataset, `scaleBand` and `scaleLinear` define the axes, and SVG `rect` and `image` elements render the bars and flags. The chart includes gridlines and tick labels generated from D3's scale ticks.

AI-generated description