gnucash maint: Bug 798154 - Tooltips wrong when multiple charts in one report
Christopher Lam
clam at code.gnucash.org
Tue Mar 23 18:48:52 EDT 2021
Updated via https://github.com/Gnucash/gnucash/commit/7c323b22 (commit)
from https://github.com/Gnucash/gnucash/commit/170502c6 (commit)
commit 7c323b222d25d2beb96ab313f657ecb461795d5e
Author: Dries <dries.hoet at gmail.com>
Date: Wed Mar 24 06:41:10 2021 +0800
Bug 798154 - Tooltips wrong when multiple charts in one report
with multiple chartjs on one page this fix will pick up the correct
data.
diff --git a/gnucash/report/html-chart.scm b/gnucash/report/html-chart.scm
index 3e8829b25..1844b871f 100644
--- a/gnucash/report/html-chart.scm
+++ b/gnucash/report/html-chart.scm
@@ -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({
Summary of changes:
gnucash/report/html-chart.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list