Stacked Bar Chart
✓ Published0🌍 Public
This stacked bar chart visualizes religious population distributions across five countries using data from a CSV file. Each bar segment represents a religious group, with colors assigned via d3.scale.category10 and a legend generated using d3.legend. Hovering over legend items highlights the corresponding layer and displays tooltips with d3-tip. The chart uses d3.layout.stack, d3.nest, and ordinal/linear scales, rendered with SVG and interactive animations.
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