🌍 Public
Viewing a saved revision (read-only)
8431ed56c44648a88cac21f4e8a368d0
Stacked Bar Chart
This stacked bar chart displays the religious composition of populations across multiple countries, using one bar per country segmented by religion and scaled by population. The visualization loads D3 v3 via CDN, builds the stacked layout with `d3.layout.stack`, and applies ordinal and linear scales for axes. Interactive features include tooltips via d3-tip and a color legend that filters bars on hover, with an overlay rectangle controlling transparency transitions.
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.