🌍 Public
Viewing a saved revision (read-only)
0a1a73bb08fb4d3a8d0d866eda184ddc
Activity_6_TASK1_DV
A horizontal bar chart displays the populations of 30 countries for the year 2020, sorted by country name along the y-axis. The chart uses React with D3 v5 to render SVG elements, employing `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Population values are loaded from a remote CSV, formatted with D3's `format` function to abbreviate large numbers (e.g., billions as "B"), and bars are colored light green. The visualization includes labeled axes and a native SVG tooltip on each bar.
AI-generated descriptionA demonstration of how to start using D3 version 6.