[Chartjs]-Tooltip alignement with Chart.js v2

1👍

Thank you @Tektiv,

I’ve updated your answer as it didn’t solve my issue on chromium 54 as you can see here:

dougnut with wrong alignement

I’m using this option:

Chart.defaults.global.tooltips.footerFontSize = 0;

Along with this footer callback:

options: {
    tooltips: {
        callbacks: {
            footer: function() { return ' '; },
            label: PercentageTooltip
        }
    }
}

Here’s the jsFiddle, and the result is correct for me (although this is very hacky) :

dougnut with correct tooltip alignement

Cheers!

Leave a comment