Activity 6_Task 1 (q1)
✓ Published0🌍 Public
This visualization displays population data for ten countries in the year 2000 as horizontal bars, using SVG rendering within a React framework. The chart encodes population values with bar length on a linear scale, while countries are positioned along a band scale. It loads a CSV dataset from a GitHub URL and formats population numbers in abbreviated form using D3’s `format` function, replacing ’G’ with ’B’ for billions. React components manage axes and marks, with D3’s `scaleBand` and `scaleLinear` handling the spatial mapping, and native SVG `<title>` elements provide tooltips.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed