mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Disable initial report animation
Previously, every reload caused the chart to move through an animation, which prevented visual comparison of state before and after reload. Also remove the now redundant line disabling animations in budget-barchart.scm.
This commit is contained in:
@@ -155,6 +155,8 @@
|
||||
(cons 'datasets #())))
|
||||
(cons 'options (list
|
||||
(cons 'maintainAspectRatio #f)
|
||||
(cons 'animation (list
|
||||
(cons 'duration 0)))
|
||||
(cons 'chartArea (list
|
||||
(cons 'backgroundColor "#fffdf6")))
|
||||
(cons 'legend (list
|
||||
|
||||
@@ -204,8 +204,8 @@
|
||||
(gnc:html-chart-set-y-axis-label! chart (gnc-commodity-get-mnemonic curr))
|
||||
|
||||
;; disable animation; with multiple accounts selected this report
|
||||
;; will create several charts, all will want to animate
|
||||
(gnc:html-chart-set! chart '(options animation duration) 0)
|
||||
;; will create several charts, all will want to animate. Initial
|
||||
;; animation is already disabled globally.
|
||||
(gnc:html-chart-set! chart '(options hover animationDuration) 0)
|
||||
(gnc:html-chart-set! chart '(options responsiveAnimationDuration) 0)
|
||||
(gnc:html-chart-set-title!
|
||||
|
||||
Reference in New Issue
Block a user