Skip to main content
100%

Fork of Activity 7

✓ Published0🌍 Public
Ppvreswar7@gmail.com
Last edited Jun 26, 2023
Created on Jun 26, 2023
Forked from Activity 7

This example shows the 30 most populous countries in 2020 as a horizontal bar chart, with each bar’s length encoding population size and a tooltip revealing the exact value. The chart is rendered as SVG using React components for the axes and marks, while D3’s `scaleBand` and `scaleLinear` handle the positional scales. Data is loaded from a CSV file via a custom `useData` hook and the `d3.csv` function, with population values formatted using `d3.format`.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes