Chartjs-Chart.js/Ng-charts stacked bar chart โ€“ display percentages on bar, but actual values on tooltip

0๐Ÿ‘

โœ…

You target the array as one object to return, if you only want to return the individual value you also need to target that like so:

label: (tooltipItem, data) => {
  return data.datasets[tooltipItem.datasetIndex].actualValue[tooltipItem.dataIndex];
},

Leave a comment