Skip to main content
100%

activity8Task1.1

✓ Published1🌍 Public
BBindumadhavi
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Activity8tutorial1

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 description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes