Skip to main content
100%

Activity6_Question1.2

✓ Published0🌍 Public
AAftab Hussain
Last edited Mar 31, 2025
Created on Mar 31, 2025
Forked from Hello VizHub

This horizontal bar chart displays the population of 20 countries in 2010, sorted with the largest population at the top of the chart. The visualization uses React components to render SVG elements and D3 v5 APIs, including `scaleBand` for the categorical y-axis and `scaleLinear` for the continuous x-axis. Data is loaded asynchronously from a CSV file using D3’s `csv` function, with population values converted from the raw 2010 column. Marks are rendered as rectangles whose widths are proportional to population values, with tooltips formatted using D3’s `format`.

AI-generated description
MIT Licensed

Similar vizzes