Skip to main content
100%

Activity_6 Q2

✓ Published0🌍 Public
Bbhavanadupati3@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

A horizontal bar chart ranks 30 countries by their 2020 population, using light green bars with blue tick marks and gray labels on a white SVG canvas. The React app loads data from a CSV URL via `d3.csv`, maps the population values, and renders the chart with `d3.scaleBand` and `d3.scaleLinear` scales. The x-axis formats tick values using `d3.format` to abbreviate large numbers, converting G to B, while tooltips show the formatted population on hover. The layout uses fixed margins and a bottom axis label "POPULATION-2020," leveraging D3 v5 within a React component structure.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes