I\'m trying to get the sum of all values of a stackedBar and include this total in tooltip.
Note: my datasets aren\'t static, this is an example
Shorter version of Gaspar's answer:
tooltips: { callbacks: { footer: (tooltipItems, data) => { let total = tooltipItems.reduce((a, e) => a + parseInt(e.yLabel), 0); return 'Total: ' + total; } } }
Example: https://jsfiddle.net/g3ba60zc/2/