Skip to main content
100%

Activity6_Population_20countries_2010

✓ Published0🌍 Public
Aamireddy.sw@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024

This horizontal bar chart displays the population of 20 countries in 2010, ordered by country name. The visualization uses D3 v5's `scaleBand` and `scaleLinear` to map country names and population values to SVG rectangles, with axes rendered via custom `AxisBottom` and `AxisLeft` components. Population data is loaded from a CSV file using d3’s `csv` function and formatted with `format` to show values in billions. The chart is built within a React framework, using SVG for rendering and tooltips to display exact values on hover.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes