Skip to main content
100%

activity 6_Task 1

✓ Published0🌍 Public
SSumanthnaidu213
Last edited Apr 14, 2024
Created on Apr 14, 2024

A horizontal bar chart displays 2020 population figures for countries, with bars extending from a shared left edge to lengths proportional to population values. The visualization uses React to render SVG elements, while D3 v6 scales and axes handle positioning and tick formatting, converting large numbers into abbreviated labels like "1.2B". Data is loaded asynchronously from a GitHub-hosted CSV file via D3's `csv` function. Interactive tooltips appear on hover through SVG `<title>` elements, revealing exact population values.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes