Skip to main content
100%

Fork of Fork of United Nations Bar Chart with SVG

✓ Published0🌍 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
MIT Licensed

Similar vizzes