🌍 Public
Viewing a saved revision (read-only)
61d3f43a93884d5a98d81fb9822dfdc8
Task1 of Activity6
A horizontal bar chart displays the 2020 population estimates for 30 countries, sorted by country name. The chart is rendered as a static SVG using React and D3 v5, with bars colored green and blue tick marks. Population values are loaded from a remote CSV file and formatted in a compact SI notation. The implementation uses D3 scales, including `scaleBand` and `scaleLinear`, to map data to coordinates, and custom React components for axes and marks, with a tooltip showing the formatted population on hover.
AI-generated descriptionA demonstration of how to start using D3 version 6.