Chartjs-Images in ChartJS CustomTooltips

0👍

I figured it out with the help of a few other posts. Has been a very hard solution to find so figured I’d post it here.

Changing the callbacks to the following allowed me to get the name of the tooltip only:

            callbacks: {
                label: function(tooltipItem, data) { 
                    var indice = tooltipItem.index;                 
                    return  data.labels[indice];
                }
            },

Which then allowed me to do as I needed above.

Leave a comment