Chart

Stacked bar

Web supportediOS supportedAndroid supported

Compare totals and their composition.

ECharts stacked bar series · View source

Use it when the parts inside each total matter.

Configuration

Keys accepted inside zyplot(z => ({...})). Required keys are marked with an asterisk.

NameTypeDefaultDescription
categories*string[]—Labels on the category axis.
series*ChartSeries[]—Named series aligned with the categories.
formatChartNumberFormat—Number prefix, suffix, decimals, and locale.
isNormalizedboolean—Normalize every stack to 100%. Web only.
orientation"horizontal" | "vertical""vertical"Direction in which the bars grow.
axisChartAxes{ x: true, y: true }Show or hide each axis.
xAxisNativeChartAxisOptions—Horizontal scale, domain, ticks, grid, and labels.
yAxisNativeChartAxisOptions—Vertical scale, domain, ticks, grid, and labels.
heightnumber240 web / 320 nativeChart height in pixels or native points.
isLoadingbooleanfalseShows the built-in placeholder while data loads.
themeChartTheme—Colors and typography for this chart.