Activity6_population
✓ Published0🌍 Public
This example shows a horizontal bar chart of country populations in 2020, using a band scale for countries and a linear scale for population values. The chart is rendered as SVG with React components, using D3 v5 utilities such as `scaleBand`, `scaleLinear`, `max`, and `format`. Population values are formatted with SI prefixes, converting gigabytes to billions, and each bar includes a native SVG tooltip. The data is loaded via a custom hook (`useData`) from a CSV source.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed