Skip to main content
100%

Activity 6_Question 2

✓ Published0🌍 Public
HHarshita Vairagade
Last edited Apr 13, 2024
Created on Apr 13, 2024

A horizontal bar chart displays the 2020 population estimates for 20 countries, ranked from largest population at the top to smallest at the bottom. The visualization uses React with D3 v5 utilities like `scaleBand` and `scaleLinear` to map country names and population values to SVG rectangles. Data is loaded from a remote CSV file via `d3.csv`, and each bar includes a tooltip showing its formatted population value. The chart is rendered as an SVG with labeled axes, including a formatted x-axis displaying values in billions.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes