Bug 798154 - Tooltips wrong when multiple charts in one report

with multiple chartjs on one page this fix will pick up the correct
data.
This commit is contained in:
Dries 2021-03-24 06:41:10 +08:00 committed by Christopher Lam
parent 170502c6c5
commit 7c323b222d

View File

@ -357,7 +357,7 @@ function tooltipLabel(tooltipItem,data) {
}
function tooltipTitle(array,data) {
return chartjsoptions.data.labels[array[0].index]; }
return data.labels[array[0].index]; }
// draw the background color
Chart.pluginService.register({