Act 6.2
✓ Published1🌍 Public
This stacked bar chart displays the percentage distribution of GDP growth across six categories for 14 countries, with each bar segmented by growth range. The visualization uses d3.stack() to process the CSV data and d3.scaleOrdinal() for coloring. Hovering over a segment triggers a tooltip showing the precise percentage, while the y-axis uses d3.scaleBand() for country labels. The SVG rendering includes custom axes and a color legend, with the code loading D3 v7 via UNPKG.
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