Skip to main content
100%

Activity6_Question1.2

✓ Published0🌍 Public
Nneerajreddyaluka@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart comparing the 2020 populations of twenty countries, ranked in descending order. The visualization uses React to render SVG elements, with D3 v5 (d3.scaleBand, d3.scaleLinear, d3.csv, d3.format) handling data loading and scaling. Bars are drawn as rectangles, with axis components for bottom and left labels, and a tooltip showing abbreviated population values. The dataset is fetched from a remote CSV file and processed to convert population figures to absolute numbers.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes