Activity 6_Q1.2
✓ Published0🌍 Public
This example displays a horizontal bar chart of the populations of the top 20 countries in 2010, using a green fill for each bar. It uses React to render an SVG, with D3 v5 utilities such as `scaleBand` and `scaleLinear` for chart scales, and custom components for the axes and marks. Population data is loaded via `d3.csv` from a GitHub-hosted CSV file, and tooltips show the formatted value with a custom SI formatter.
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