Skip to main content
100%

Activity 6_Tutorial1

✓ Published1🌍 Public
Jjayanthbalina@gmail.com
Last edited Apr 3, 2024
Created on Apr 3, 2024
Forked from Activity 7

This example displays a horizontal bar chart of the 2020 population for 30 countries, where each bar’s length encodes the numeric value and the y-axis lists country names. The visualization is built with React and D3 v5, using `d3.scaleBand` and `d3.scaleLinear` to map data to SVG rectangles. The data is loaded from a CSV file via `d3.csv`, and hover tooltips show formatted population values using `d3.format` with SI prefixes.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes