Skip to main content
100%

Stacked Bar Chart of Depression Rates by Country

✓ Published0🌍 Public
CCrossZeigler
Last edited May 21, 2023
Created on May 20, 2023
Forked from D3 Starter

This horizontal stacked bar chart displays depression rates across countries, broken down by year from 2015 to 2019. Each bar represents a country, with colored segments corresponding to annual prevalence percentages, and hovering reveals exact values via a custom tooltip. Built with D3 v4, the visualization renders as SVG and uses `d3.stack` for the segmented bars, `d3.scaleOrdinal` for the color palette, and a CSV dataset from GitHub as the data source.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes