Activity_6 Q1.1
✓ Published1🌍 Public
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 descriptionMIT Licensed