Skip to main content
100%

Activity6_Task 1

✓ Published1🌍 Public
Ppraneeth.d555@gmail.com
Last edited Oct 22, 2024
Created on Oct 18, 2024
Forked from Hello VizHub

This interactive horizontal bar chart visualizes the 2020 population of 30 countries, using D3 v5 within a React framework. The chart uses SVG rendering, with `d3.scaleBand` and `d3.scaleLinear` to map the categorical country names and numerical population values. Each bar’s length encodes the population data, with a tooltip displaying the formatted value in billions. The chart includes styled axes with blue tick lines and labeled tick marks, and a bottom axis label reading "POPULATION-2020". The data is loaded from a CSV file using D3’s `csv` function and displayed with a green bar fill.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes