Skip to main content
100%

Stacked Bar Chart

✓ Published0🌍 Public
Ssrikkanth05
Last edited Jul 17, 2023
Created on Jul 15, 2023
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes