From 5f90144fb17ad8a56524ed40279d0832e7c52ead Mon Sep 17 00:00:00 2001 From: Philipp Matthias Schaefer Date: Thu, 1 Oct 2020 14:16:09 +0200 Subject: [PATCH] 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. --- gnucash/report/html-chart.scm | 2 ++ gnucash/report/reports/standard/budget-barchart.scm | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gnucash/report/html-chart.scm b/gnucash/report/html-chart.scm index d3da4b47e1..3598331125 100644 --- a/gnucash/report/html-chart.scm +++ b/gnucash/report/html-chart.scm @@ -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 diff --git a/gnucash/report/reports/standard/budget-barchart.scm b/gnucash/report/reports/standard/budget-barchart.scm index b61a55a0ec..d6b9c4dee5 100644 --- a/gnucash/report/reports/standard/budget-barchart.scm +++ b/gnucash/report/reports/standard/budget-barchart.scm @@ -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!