Skip to main content
100%

Activity 6

✓ Published2🌍 Public
Jjayanthbalina@gmail.com
Last edited Apr 3, 2024
Created on Apr 2, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart of 2020 population data for 30 countries, with bars colored green and blue axis lines and labels. The chart uses React components to render SVG marks and axes, with D3 v5’s `scaleBand` and `scaleLinear` for positioning, `csv` for loading the dataset from a GitHub URL, and `format` for abbreviating population values (e.g., “B” for billions). A tooltip via the SVG `<title>` element displays the formatted population on hover.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes