🌍 Public
Viewing a saved revision (read-only)
9d65cc2286cf4223b31c88e8797a5f8c
Activity_6 Q1.1
This example displays a horizontal bar chart comparing the population of ten countries in the year 2000. Blue tick lines and green bars are rendered as SVG within a React component. The chart uses `d3.scaleBand` for the y-axis, `d3.scaleLinear` for the x-axis, and `d3.csv` to load data from an external URL. Population values are formatted with `.2s` notation and converted from millions to billions using the `.replace('G', 'B')` method.
AI-generated description