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 stars0🌍 Public
Jjuanmy400
Last edited Feb 24, 2022
Created on Feb 24, 2022

This bar chart visualizes the top 10 most populous countries in 2019 using UN population data. Built with React and D3 v7, the example loads CSV data via `d3.csv` and renders horizontal bars with SVG, including country flags displayed at the end of each bar using `<image>` elements. The chart uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with gridlines and tick labels generated from the scales.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed