Skip to main content
100%

activity 6_Task 1

✓ Published0🌍 Public
SSrihith Reddy Gaddam
Last edited Apr 7, 2025
Created on Apr 7, 2025
Forked from Hello VizHub

This horizontal bar chart displays the 2020 populations of the first 30 countries from a CSV file fetched via `d3.csv`. Rendered as an SVG using React, the visualization maps country names on the y-axis using `d3.scaleBand` and population values on the x-axis via `d3.scaleLinear`. Light green bars represent each nation’s population, with axis ticks generated by custom `AxisBottom` and `AxisLeft` components. The chart’s x-axis labels are formatted in millions, and the data loading handles asynchronous fetching with `useData`.

AI-generated description
MIT Licensed

Similar vizzes