How does the combination of smoking status and cholesterol levels influence the prevalence of cardiovascular disease (CVD)?
This interactive stacked bar chart explores how smoking status and total cholesterol levels relate to cardiovascular disease prevalence. The visualization uses d3.flatRollup and d3.stack to aggregate and structure the data, with d3.scaleLinear and d3.scaleBand handling the axes. Hovering over the color legend, implemented through a d3 colorLegend module, highlights the corresponding CVD category across the bars while fading others. The dataset originates from patient records, with smoking and CVD status encoded as categorical values and cholesterol plotted along the x-axis.
AI-generated descriptionStacked 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.