Skip to main content
100%

Activity 6_Question 1

✓ Published1🌍 Public
Aanusha.chilkamarri26@gmail.com
Last edited Apr 3, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

A horizontal bar chart displays the populations of the top ten countries in 2020, ranked by country name. The chart uses D3 v5 scales, including `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with values formatted to billions using `d3.format`. React renders the SVG elements, while D3’s `csv` loads and parses the population data from a GitHub-hosted CSV file. Each bar includes a native SVG `<title>` element for tooltips.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes