Commit f775d491 authored by c24b's avatar c24b

DONUT

parent 0db52e11
......@@ -563,6 +563,7 @@
// console.log(data)
setTimeout(
function() {
location.reload();
}, 5000);
},
......@@ -571,23 +572,23 @@
}
});
}
{% if donut %}
// Morris Donut Chart
Morris.Donut({
element: 'hero-donut',
data: [
{% if donut %}
{% for part in donut %}
{label: '{{ part.source }}', value: {{ part.part }} },
{% endfor %}
{% endif %}
],
colors: ["@white", "@white"],
//colors: ["#30a1ec", "#76bdee"],
formatter: function (y) { return y + "%" }
});
{% endif %}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment