🌍 Public
Viewing a saved revision (read-only)
3b3ee61c9f4347f39bc46c73ebd18fe2
Fork of Fork of Hello VizHub
This example displays a horizontal bar chart of population data for ten countries in the year 2000, using a React-based SVG visualization. The chart employs D3 v5’s `scaleBand` for categorical y-axis positioning and `scaleLinear` for the numeric x-axis population values. Data is loaded via `d3.csv` from a GitHub-hosted CSV file, then formatted with `d3.format` to abbreviate large numbers. Gray rectangular marks are rendered per country, with interactive tooltips showing the exact population value.
AI-generated descriptionA demonstration of how to start using D3 version 6.