activity8Task1.1
✓ Published1🌍 Public
This example shows the population of ten countries in the year 2000 as horizontal bars, with the countries labeled on the y-axis and population values on the x-axis. It uses React with D3’s `scaleBand` and `scaleLinear` to map the data, rendering rectangles in an SVG. The data is loaded via `d3.csv` from a GitHub repository, and formatted with `d3.format` to abbreviate large numbers (e.g., ‘B’ for billion). Hovering a bar reveals its precise value via a `<title>` tooltip.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed