🌍 Public
Viewing a saved revision (read-only)
5d7a0f42df224a268d1436145cbeb013
Stacked Bar Chart of Depression Rates by Country
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 descriptionA demonstration of how to start using D3 version 6.