Excluding a series from stacking
We can also exclude a particular series from stacking by passing null
to its stacking
property, as shown in the following code:
series: [{ name: 'Gold', data: [46, 38, 24, 29, 13] }, { name: 'Silver', data: [29, 27, 26, 17, 8] }, { name: 'Bronze', data: [29, 23, 32, 19, 7], stacking: null }]
The Bronze series will now be excluded from the stacking context and will be shown in a separate column:
In the next example, we will configure the column chart to stack data series proportionally for each category.