Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of Interactive Stacked Bar Chart

Public visualization

Fork of Fork of Fork of Interactive Stacked Bar Chart

0 stars0🌍 Public
DDivyaKota2@my.unt.edu
Last edited Apr 26, 2024
Created on Apr 26, 2024

This interactive stacked bar chart visualizes COVID-19 case and death counts for the world's most populous countries in 2023. Built with D3 v7, it uses `stack()` to layer the two metrics within horizontal bars, with `scaleBand` for country positioning and `scaleLinear` for the value axis. Hovering over the legend highlights a specific stack layer via `mouseenter` and `mouseleave` events on the color legend. The chart renders as SVG using the `@curran/responsive-axes` library for axis generation, drawing from merged pandemic and population CSV data.

AI-generated description

Stacked bars showing estimated religion breakdown of the most populous 20 countries in 2010. Based on an example from the tutorial Splitting Charts. Interactions:

  • Hover over the legend to highlight religions.

Data is from The Global Religious Landscape by Pew Research, generated using this processing script.

Comments

Sign in to join the discussion.

MIT Licensed