some beautification to the template code

This commit is contained in:
Tobias Diekershoff 2016-01-18 17:29:46 +01:00
parent 9150ec59b5
commit 846153d388

View file

@ -23,11 +23,7 @@ var FedData = [
{{/foreach}}
];
var ctx = document.getElementById("FederationChart").getContext("2d");
var myDoughnutChart = new Chart(ctx).Doughnut(FedData,
{
animateRotate : false,
});
document.getElementById('FederationLegend').innerHTML = myDoughnutChart.generateLegend();
var myDoughnutChart = new Chart(ctx).Doughnut(FedData, { animateRotate : false, });
</script>
<table id="federation-stats">