The code is:
total: {
show: true,
showAlways: false,
label: 'Total',
color: '#373d3f',
formatter: function (w) {
return "$" + w.globals.seriesTotals.reduce((a, b) => {
return a + b
}, 0)
}
}
showAlways is false - I was expecting the total not to be shown when the user selects a slice.
When I hover it, the total does change to the slice's data but when selected and moving away, the total comes back.
Thanks