=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/chart.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/chart.js 2012-05-12 08:35:08 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/chart.js 2012-05-12 13:36:32 +0000 @@ -389,6 +389,7 @@ el: '', legendPosition: false, orgUnitIsParent: false, + skipAnimation: false, url: '' }; @@ -540,7 +541,7 @@ renderTo: project.state.conf.el, width: project.state.conf.width || this.el.getWidth(), height: project.state.conf.height || this.el.getHeight(), - animate: true, + animate: !project.state.conf.skipAnimation, store: project.store, items: DHIS.util.chart.getTitle(), legend: DHIS.util.chart.getLegend(project.store.left.length), @@ -588,7 +589,7 @@ renderTo: project.state.conf.el, width: project.state.conf.width || this.el.getWidth(), height: project.state.conf.height || this.el.getHeight(), - animate: true, + animate: !project.state.conf.skipAnimation, store: project.store, items: DHIS.util.chart.getTitle(), legend: DHIS.util.chart.getLegend(project.store.bottom.length), @@ -636,7 +637,7 @@ renderTo: project.state.conf.el, width: project.state.conf.width || this.el.getWidth(), height: project.state.conf.height || this.el.getHeight(), - animate: true, + animate: !project.state.conf.skipAnimation, store: project.store, items: DHIS.util.chart.getTitle(), legend: DHIS.util.chart.getLegend(project.store.left.length), @@ -668,7 +669,7 @@ renderTo: project.state.conf.el, width: project.state.conf.width || this.el.getWidth(), height: project.state.conf.height || this.el.getHeight(), - animate: true, + animate: !project.state.conf.skipAnimation, store: project.store, items: DHIS.util.chart.getTitle(), legend: DHIS.util.chart.getLegend(project.store.left.length), @@ -709,7 +710,7 @@ renderTo: project.state.conf.el, width: project.state.conf.width || this.el.getWidth(), height: project.state.conf.height || this.el.getHeight(), - animate: true, + animate: !project.state.conf.skipAnimation, shadow: true, store: project.store, insetPadding: 60,