Activity 6_Task 1 (question 1)
✓ Published1🌍 Public
This example shows a horizontal bar chart ranking the populations of ten countries for the year 2000, with country names on the y-axis and population values on the x-axis. The visualization uses React to render SVG elements via D3’s `scaleBand` and `scaleLinear` for positioning, while `AxisBottom` and `AxisLeft` components generate tick marks and labels. Data is loaded as CSV from a GitHub repository, with population values converted from thousands. Tooltips display formatted population figures using D3’s `format(‘.2s’)`.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed