← All chart types
bar family
bar-stacked-horizontal
Horizontal stacked bars — composition per row.
Horizontal version of bar-stacked-vertical. Good for long category labels with composition that needs explanation. Often used in survey results to show share of agree/neutral/disagree across many groups.
When to use
Many categories (countries, segments) where each is broken into shares of a same set of subcategories.
When NOT to use
Time on the x-axis (use vertical stacking).
Rhetorical roles
- compare
- decompose
Variants & related
Required primitives
- has_legend
- has_axis_titles
Optional primitives
- has_data_labels
- has_source_note
Common anti-patterns
- rainbow-palette
- too-many-segments
Disambiguation rules
- Bars run horizontally; each bar is segmented along its length.
- If all bars sum to 100%, this is bar-stacked-100pct.