Skip to content

Stacked bars

Preview of the Stacked bars demo
Stacked bars bar({ y: [...keys], position: 'stack' }) packs multiple series into one layer. The same layer switches to 'dodge' for grouped side-by-side bars and 'fill' for 100% stacked — no data reshaping needed.