🌍 Public
Viewing a saved revision (read-only)
0cea8c986c084575915cf736f82bb93e
Fork of activity6q1(1)
This horizontal bar chart displays the population of ten countries in the year 2000, sorted with the largest population at the top. Built with React and D3 v5, it uses `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis, rendering SVG rectangles. Data is loaded from a CSV file using D3’s `csv` function, and axis ticks are formatted with a custom SI prefix function that converts billions to 'B'.
AI-generated descriptionA demonstration of how to start using D3 version 6.