Skip to main content
100%

Act 6 task1

✓ Published0🌍 Public
BBhavana Sharma
Last edited Apr 5, 2024
Created on Apr 5, 2024
Forked from Activity 7

A horizontal bar chart displays 2020 population estimates for 30 countries, sorted by country name, with green bars and blue tick marks. The visualization uses React with D3 v5 scales (`scaleBand`, `scaleLinear`) to map country names to y-axis positions and population values to bar widths, rendering SVG rectangles via a custom `Marks` component. Data loads asynchronously from a GitHub-hosted CSV file using `d3.csv`, and axis labels are formatted with D3's `format` function to abbreviate large numbers.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes