Activity6_population-2000
✓ Published0🌍 Public
This example displays a horizontal bar chart titled “Population by Country (2000) for Top 10,” showing the population of ten countries. It uses React with D3 v5, importing `scaleBand`, `scaleLinear`, `max`, and `format` from D3. The SVG rendering includes custom `AxisBottom`, `AxisLeft`, and `Marks` components. Data is loaded from a remote CSV using `useData`, and each bar includes a native SVG tooltip showing the formatted population value.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed