Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Stacked Bar Chart

Public visualization

Viewing a saved revision (read-only)

907ed3abb3724ecb9ba137bc21b7dd6f

Stacked Bar Chart

0 stars1🌍 Public
Ssuryavamsi00024
Last edited Jul 19, 2023
Created on Jul 19, 2023
Forked from Hello VizHub

This stacked bar chart compares the religious composition of populations across fifteen countries, using data from a CSV file. Each country is represented by a bar, segmented into colored layers for different religions, with population sizes on the y-axis. The visualization uses D3 v3 with `d3.layout.stack` for stacking, `d3.scale.ordinal` and `d3.scale.linear` for scales, and `d3.legend.color` for the legend. Hovering over a legend item highlights that religion’s segments, and a tooltip displays population values.

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.