Skip to main content
100%

Stacked Bar Chart

✓ Published0🌍 Public
LLakshmanRangisetti
Last edited Jul 16, 2023
Created on Jul 16, 2023
Forked from Hello VizHub

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 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