Skip to main content
100%

Fork of Fork of Hello VizHub

✓ Published0🌍 Public
Aabjalshaik02@gmail.com
Last edited Oct 21, 2024
Created on Oct 21, 2024

This example displays a horizontal bar chart of population data for ten countries in the year 2000, using a React-based SVG visualization. The chart employs D3 v5’s `scaleBand` for categorical y-axis positioning and `scaleLinear` for the numeric x-axis population values. Data is loaded via `d3.csv` from a GitHub-hosted CSV file, then formatted with `d3.format` to abbreviate large numbers. Gray rectangular marks are rendered per country, with interactive tooltips showing the exact population value.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes