From d4ff065963e6f60303ab22914581fa79c33cd2fc Mon Sep 17 00:00:00 2001 From: Sigmund Augdal Date: Tue, 11 Feb 2014 14:47:30 +0100 Subject: [PATCH] Disable pie chart animations --- puppetboard/templates/_macros.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/puppetboard/templates/_macros.html b/puppetboard/templates/_macros.html index 15d5883..ba70a69 100644 --- a/puppetboard/templates/_macros.html +++ b/puppetboard/templates/_macros.html @@ -66,7 +66,7 @@ } top7.push({ label: "Other", value: bottom_sum, color: "#B30202" }); var ctx = document.getElementById("factChart").getContext("2d"); - new Chart(ctx).Pie(top7); + new Chart(ctx).Pie(top7, {'animation': false}); {%- endmacro %} {% macro facts_graph_value(facts, autofocus=False, condensed=False, show_node=False, margin_top=20, margin_bottom=20) -%} @@ -91,7 +91,7 @@ data[i].color = colors[i % len_colors]; } var ctx = document.getElementById("factChart_value").getContext("2d"); - new Chart(ctx).Pie(data.sort(function(a,b) { return parseInt(a.label) - parseInt(b.label)})); + new Chart(ctx).Pie(data.sort(function(a,b) { return parseInt(a.label) - parseInt(b.label)}), {'animation':false}); {%- endmacro %}