Skip to main content
100%

Activity6_population

✓ Published0🌍 Public
Kkeerthi.yanala104@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

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 description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes