[Chartjs]-ChartJS: Show all labels of a mixed chart in the tooltip

9๐Ÿ‘

โœ…

Set the tooltip interaction mode to index:

options = {
    tooltips: {
        mode: 'index'
    }
}

Result:

enter image description here

3๐Ÿ‘

The new syntax for Chart JS 3+ :

options: {
    interaction: {
        intersect: false,
        mode: 'index',
    }
}

Leave a comment