🌍 Public
Viewing a saved revision (read-only)
921b6907e32e4ef18d6b0d9e5f561076
No content available for this visualization.
activity 6_Task 1_Vamsi
This visualization displays the top 30 countries by population in 2020 using a horizontal bar chart rendered with React and D3 v5. SVG rectangles scaled with `d3.scaleLinear` represent population values, while `d3.scaleBand` positions the categorical country labels. The chart includes formatted tick labels using `d3.format` (converting G to B) and axis components built with React. Population data is loaded asynchronously from a remote CSV via `d3.csv` in the `useData` hook, with values multiplied by 1000 before rendering.
AI-generated description