Skip to main content
100%

Task 1 question 1

✓ Published0🌍 Public
GGanesh Gundekarla
Last edited Apr 5, 2025
Created on Apr 5, 2025
Forked from Hello VizHub

This horizontal bar chart displays the top 10 countries by population in the year 2000, with bars extending from left to right and country names listed along the vertical axis. The visualization uses React components to render SVG elements, with D3 v5 scales (`scaleBand`, `scaleLinear`) and formatting utilities (`format`) to map population values to bar widths. Data comes from a CSV file fetched via D3’s `csv` method, filtered to the top 10 entries after sorting. Bars include a native SVG `<title>` tooltip showing the formatted population value, and hover effects change bar color.

AI-generated description
MIT Licensed

Similar vizzes