Activity6_ Question 1
✓ Published0🌍 Public
This example displays a horizontal bar chart of the ten most populous countries in the year 2000, using a dataset loaded from a GitHub-hosted CSV file. The visualization encodes population values as bar lengths and country names on the y-axis, with an SVG rendering in React. The code uses D3’s `scaleLinear` and `scaleBand` to map data to coordinates, and the `format` function to abbreviate tick labels (e.g., \"1.2B\"). Hovering over a bar reveals its exact population via an SVG `<title>` tooltip.
AI-generated descriptionMIT Licensed