Skip to main content
100%

Activity 6_Question1 1.2

✓ Published1🌍 Public
HHarshita Vairagade
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Activity 6_Task 1

A horizontal bar chart displays the population of 20 countries in 2020, with each bar’s length proportional to its population value and country names listed along the vertical axis. The visualization uses React to render SVG elements, with D3 v5’s `scaleBand` and `scaleLinear` functions handling positioning. Population values are formatted in billions using `d3.format`, while the underlying data is loaded from a CSV file via `d3.csv`. The chart includes styled axes with blue tick lines and green bars, and hover tooltips show the precise formatted population values.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes