Appearance
Stacked bar
js
{
chartType: 'stackedBar', // or 'stackedBar100'
isDataTransposed: true,
seriesData: [
['', 'Q1', 'Q2', 'Q3'],
['Product A', 40, 48, 52],
['Product B', 30, 28, 35],
],
title: { visible: true, text: 'Mix by quarter' },
subtitle: { visible: false, text: '' },
}stackedBar100 normalizes stacks to 100% and typically formats the value axis with %.
Sample
Live chart and copy-paste HTML: Stacked bar sample.