Skip to content

Commit

Permalink
[html-chart] change default mode to 'index and intersect #f
Browse files Browse the repository at this point in the history
Will enable tooltips over the chart canvas, instead of requiring the
mouse to hover near the data point.
  • Loading branch information
christopherlam committed Nov 29, 2024
1 parent 555e23e commit 28fec40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions gnucash/report/html-chart.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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)))))

Expand Down
4 changes: 0 additions & 4 deletions gnucash/report/reports/standard/balance-forecast.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
Expand Down

0 comments on commit 28fec40

Please sign in to comment.