Chartjs-How do I display a different chartjs tooltip title?

0👍

This should work for what you want:

title: (tooltipItem, data) => {
    return data['datasets'][tooltipItem[0].datasetIndex]['label']
}

working example: https://jsfiddle.net/Leelenaleee/bcwky40z/4/

Leave a comment