Skip to main content
100%

Activity 6_Question 1-1.2

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

This visualization displays the populations of 20 countries in 2020 as a horizontal bar chart. It uses React to render SVG elements through helper components for axes and marks. D3’s scaleBand and scaleLinear map country names and population values, while csv from d3 fetches the dataset from a GitHub repository. Bars use a tooltip via the title element, and the x-axis labels are formatted with d3.format to abbreviate values.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes