diff --git a/view/templates/admin/federation.tpl b/view/templates/admin/federation.tpl
index 70e3e9b06..c92af180c 100644
--- a/view/templates/admin/federation.tpl
+++ b/view/templates/admin/federation.tpl
@@ -6,23 +6,22 @@
{{if not $autoactive}}
{{$hint}}
{{/if}}
- {{$legendtext}}
+
{{$legendtext}}
- {{foreach $counts as $c}}
- {{if $c[0]['total'] > 0}}
+ {{foreach $counts as $c}}
+ {{if $c[0]['total'] > 0}}
- {{$c[0]['platform']}} ({{$c[0]['total']}}/{{$c[0]['users']}})
- {{/if}}
- {{/foreach}}
+ {{/if}}
+ {{/foreach}}
-
-
- {{foreach $c[1] as $v}}
- - {{if ($c[0]['platform']==='Friendica' and $version===$v['version']) }}{{$v['version']}}{{else}}{{$v['version']}}{{/if}} ({{$v['total']}})
- {{/foreach}}
-
-
+ }],
+ labels: [
+ {{foreach $c[1] as $v}}
+ '{{$v['version']}}',
+ {{/foreach}}
+ ]
+};
+var ctx = document.getElementById("{{$c[2]}}Chart").getContext("2d");
+var my{{$c[2]}}DoughnutChart = new Chart(ctx, {
+ type: 'doughnut',
+ data: {{$c[2]}}data,
+ options: {
+ legend: {display: false},
+ animation: {animateRotate: false},
+ responsive: false
+ }
+});
+
+
+ {{foreach $c[1] as $v}}
+ -
+ {{if ($c[0]['platform']==='Friendica' and $version===$v['version']) }}
+ {{$v['version']}}
+ {{else}}
+ {{$v['version']}}
+ {{/if}}
+ ({{$v['total']}})
+
+ {{/foreach}}
+
+
{{/if}}
{{/foreach}}
-
\ No newline at end of file
+