Activity6_Task1_Qus2
✓ Published0🌍 Public
This example shows a horizontal bar chart of population figures for 20 countries in 2010, drawn as SVG rectangles scaled by population value. The chart uses React with D3 v5, employing `scaleBand` for the categorical country axis, `scaleLinear` for the population axis, and custom `AxisBottom` and `AxisLeft` components to render ticks. Data is loaded asynchronously via `d3.csv` from a GitHub-hosted CSV file. Population values are formatted with D3’s `format` function, converting large numbers into abbreviated labels like “1.2B,” and hover tooltips display the same formatted values.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed