Skip to main content
100%

How does physical activity level vary with depression status, and does it differ between males and females?

✓ Published0🌍 Public

This example shows how physical activity levels vary with depression status, comparing distributions between males and females using stacked horizontal bars. The chart groups individuals by depression status, with each bar segmented by gender and positioned along a continuous physical activity scale. Hovering over the legend highlights the corresponding gender segment in the plot. The visualization uses D3's `flatRollup`, `stack`, `scaleBand`, and `scaleLinear` APIs, and parses data from a CSV containing demographic and health indicators.

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.

MIT Licensed

Similar vizzes