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 ranks countries by their 2020 population, with bars sorted in descending order and displayed with a steelblue fill. The visualization uses a D3.js scaleBand for the categorical y-axis and a scaleLinear for the numeric x-axis, with the bottom axis formatted to abbreviate large numbers (e.g., billions as "B"). The React-based code loads CSV data via `d3.csv`, converts the population field to numbers, sorts it, and renders the chart using React.createElement for SVG elements, styled with the Poppins font and a custom margin layout.

AI-generated description
MIT Licensed

Similar vizzes