Fork of activity6_Task1Question2
✓ Published1🌍 Public
This example shows a horizontal bar chart comparing the 2010 population of 20 countries, with each bar labeled by country name and value. Population data is loaded from a GitHub-hosted CSV file via d3.csv, then converted from thousands to raw numbers. The chart is built with React components, using d3.scaleBand and d3.scaleLinear for positioning, SVG rectangles for marks, and d3.format to display tick labels with abbreviations like “1.2B.” Native SVG `<title>` elements provide tooltips on hover.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed