Skip to main content
100%

Activity 8

✓ Published1🌍 Public
Ssamithareddy9@gmail.com
Last edited Apr 9, 2024
Created on Apr 9, 2024
Forked from Activity 7

This bar chart shows the top 30 countries by 2020 population, with horizontal bars sorted by country name along the y-axis and population extent along the x-axis. The D3 v5 code builds a linear x-scale from the maximum population value and a band scale with 15% inner padding for the categorical y-axis. React components render SVG rectangles for each bar, with tooltips formatted using the “G” to “B” abbreviation replacement. Data is loaded from a CSV via `d3.csv` from a GitHub gist.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes