Fork of Activity 6_Q1
✓ Published0🌍 Public
This example displays a horizontal bar chart of the top ten countries by population in the year 2000, with bars sized proportionally to population values. It uses React components to render SVG elements, with D3 v5’s `scaleBand` and `scaleLinear` for positioning. The `csv` loader fetches data from a GitHub-hosted CSV file, and `format('.2s')` converts population numbers into abbreviated labels like “1.2B”. Native SVG `<title>` elements provide hover tooltips, while axis ticks and labels are generated through custom React components.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed