Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

un population

Public visualization

un population

0 stars1🌍 Public
FFloweringDeathStar
Last edited Jul 13, 2021
Created on Jul 13, 2021

This example visualizes the top 10 countries by population in 2020 using a horizontal bar chart rendered with SVG. The bars are scaled linearly by population and positioned with a band scale, with each rectangle’s width reflecting the population value. The data is loaded from a CSV file using `d3.csv`, processed to extract the 2020 column, and rendered in React with state management. The visualization uses `scaleBand` and `scaleLinear` from d3.v7 to map countries and populations to screen coordinates.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed