I have a grouped stacked column chart with two stacks for each year.
For example lets say "sold vehicles" split by type, stack one is "bikes" and stack two is "cars".
I now want each of this stacks to have an individual tooltip, listing all series for that
stack (so e.g. VW + Audi for the cars stack) and the sum of this stack.
Is that poossible?
Code: Select all
$(function () {
$('#container').highcharts({
chart: {
type: 'column'
},
xAxis: {
categories: [2017, 2018, 2019, 2020],
},
tooltip: {
shared: true
},
plotOptions: {
column: {
stacking: 'normal',
}
},
series: [{
name: 'Audi',
data: [5, 3, 4, 7, 2],
stack: 'cars',
}, {
name: 'VW',
data: [3, 4, 4, 2, 5],
stack: 'cars',
}, {
name: 'Kettler',
data: [2, 5, 6, 2, 1],
stack: 'bikes',
}, {
name: 'Binachi',
data: [3, 0, 4, 4, 3],
stack: 'bikes',
}]
});
});
Thanks in advance