Activity 6
✓ Published2🌍 Public
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 descriptionA demonstration of how to start using D3 version 6.
MIT Licensed