Commit f775d491 authored by c24b's avatar c24b

DONUT

parent 0db52e11
...@@ -563,6 +563,7 @@ ...@@ -563,6 +563,7 @@
// console.log(data) // console.log(data)
setTimeout( setTimeout(
function() { function() {
location.reload(); location.reload();
}, 5000); }, 5000);
}, },
...@@ -571,23 +572,23 @@ ...@@ -571,23 +572,23 @@
} }
}); });
} }
{% if donut %}
// Morris Donut Chart // Morris Donut Chart
Morris.Donut({ Morris.Donut({
element: 'hero-donut', element: 'hero-donut',
data: [ data: [
{% if donut %}
{% for part in donut %} {% for part in donut %}
{label: '{{ part.source }}', value: {{ part.part }} }, {label: '{{ part.source }}', value: {{ part.part }} },
{% endfor %} {% endfor %}
{% endif %}
], ],
colors: ["@white", "@white"], colors: ["@white", "@white"],
//colors: ["#30a1ec", "#76bdee"], //colors: ["#30a1ec", "#76bdee"],
formatter: function (y) { return y + "%" } formatter: function (y) { return y + "%" }
}); });
{% endif %}
</script> </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