[Chartjs]-Chart JS custom tooltip not showing

5👍

You have to define a callback function to change the tooltip title as follows.

tooltips: {
    mode: 'index',
    callbacks: {
       title: tooltipItem => 'Question: ' + questions[tooltipItem[0].index]
    }
}

Please check the amended JSFiddle

Leave a comment