Activity6_Task 1
✓ Published1🌍 Public
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 descriptionA demonstration of how to start using D3 version 6.
MIT Licensed