Fork of Activity 6_Task 1
✓ Published0🌍 Public
This horizontal bar chart displays the population of 30 countries in 2020, using green bars sorted by country name on the y-axis and population on the x-axis. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the continuous x-axis. The `format` function from D3 converts tick labels to abbreviated form (e.g., "1.2B"). Data is loaded asynchronously from a CSV file hosted on GitHub using D3's `csv` function, with bars rendered as SVG rectangles and tooltips showing the precise value.
AI-generated descriptionA demonstration of how to start using D3 version 6.
<iframe width="560" height="315" src="https://www.youtube.com/embed/Ia_DwVMXwgk"MIT Licensed