Skip to main content
100%

Activity 7_task1_q2

✓ Published0🌍 Public
Mmandadi1999
Last edited Jul 5, 2023
Created on Jul 5, 2023

This bar chart displays the 20 most populated countries in 2020, using horizontal bars to visually compare population sizes. Built with React and D3 v5, it loads CSV data from an external source and uses `scaleBand` for the categorical y-axis, `scaleLinear` for the quantitative x-axis, and SVG `rect` elements with tooltips. The `format('.2s')` function converts large numbers into abbreviated forms like "1.2B" for the axis labels.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes