Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Example

Public visualization

Viewing a saved revision (read-only)

134e470919c242859c5b01b9c4fdaa28

D3 Example

0 stars1🌍 Public
Zzhoufangqin
Last edited Jan 2, 2020
Created on Jan 2, 2020
Forked from D3 Example

This interactive stacked bar chart visualizes the distribution of religious populations across different countries, using horizontal bars segmented by religion. The visualization leverages D3.js, with d3.layout.stack to create the stacked segments and d3.scale.ordinal for country positioning. Hovering over a country brings up a tooltip displaying the specific religion and population value, while hovering over the color legend dims unrelated segments. The chart uses an SVG rendering approach with a responsive axis and custom legend, drawing from the included religion survey dataset.

AI-generated description

A bare minimum HTML page.

See also React Starter.