Stacked Bar Chart
✓ Published0🌍 Public
This stacked bar chart displays the religious composition of populations across multiple countries, with each bar segment representing a different religion’s adherent count. Hovering over a legend item highlights that religion’s segments while dimming others, and tooltips show exact population values. The visualization uses D3.js version 3.5.5 with d3.layout.stack for data stacking, d3.scale.ordinal and d3.scale.linear for axes, and d3.legend for the interactive color legend, all rendered as SVG with hover-based interactivity.
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