From 28fec407aa95dfdcee1660e86032ffb0f5e8e109 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Fri, 29 Nov 2024 22:50:31 +0800 Subject: [PATCH] [html-chart] change default mode to 'index and intersect #f Will enable tooltips over the chart canvas, instead of requiring the mouse to hover near the data point. --- gnucash/report/html-chart.scm | 2 ++ gnucash/report/reports/standard/balance-forecast.scm | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gnucash/report/html-chart.scm b/gnucash/report/html-chart.scm index 6d549f31aa..7efa8b0df8 100644 --- a/gnucash/report/html-chart.scm +++ b/gnucash/report/html-chart.scm @@ -212,6 +212,8 @@ (cons 'point (list (cons 'pointStyle #f))))) (cons 'tooltips (list + (cons 'mode 'index) + (cons 'intersect #f) (cons 'callbacks (list (cons 'label #f))))) diff --git a/gnucash/report/reports/standard/balance-forecast.scm b/gnucash/report/reports/standard/balance-forecast.scm index 6032ff07cd..f883033204 100644 --- a/gnucash/report/reports/standard/balance-forecast.scm +++ b/gnucash/report/reports/standard/balance-forecast.scm @@ -291,10 +291,6 @@ date point, a projected minimum balance including scheduled transactions.")) (gnc:html-chart-set-currency-symbol! chart (gnc-commodity-get-nice-symbol currency)) - ;; Allow tooltip in whole chartarea - (gnc:html-chart-set! chart '(options tooltips mode) "index") - (gnc:html-chart-set! chart '(options tooltips intersect) #f) - ;; We're done! (gnc:html-document-add-object! document chart) (gnc:report-finished))))