Skip to main content
100%

Stacked Bar Chart

✓ Published0🌍 Public
NNagateja99
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from Hello VizHub

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