🌍 Public
Viewing a saved revision (read-only)
f25c9a21a1f94d97b64d884db00f3706
Act 6.2
This stacked bar chart displays GDP growth rate distributions across six countries, with each bar segmented into five growth-range categories using distinct colors. The visualization uses d3.stack() to process the CSV data and d3.scaleBand() for country positioning. Tooltips reveal exact percentages on mouseover via event handlers. The SVG rendering employs d3.axisBottom with gridlines, custom color palettes, and d3.format() for numeric precision.
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.