Skip to main content
100%

activity 7

✓ Published0🌍 Public
Ssumanthpenna0221@gmail.com
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Activity 7

This example shows the top 30 most populous countries in 2020 as a horizontal bar chart, with each bar’s length encoding population and a native SVG `<title>` element providing hover tooltips. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis, `scaleLinear` for the quantitative x-axis, and `format('.2s')` to abbreviate tick labels (e.g., “1.2B”). The data is loaded asynchronously from a CSV file using D3’s `csv` function, and axes are rendered as custom SVG components.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes