9417a8efa6
soit rendu
51 lines
1.3 KiB
HTML
51 lines
1.3 KiB
HTML
{% extends "layout_precampagne.html" %}
|
|
{% block content %}
|
|
<h2>Pas de précampagne!</h2>
|
|
<p>
|
|
Reviens plus tard {{ user['firstname']+' '+user['name'] }} pour jouer à la rezo-roulette
|
|
</p>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
Highcharts.chart('container', {
|
|
chart: {
|
|
plotBackgroundColor: null,
|
|
plotBorderWidth: 0,
|
|
plotShadow: false
|
|
},
|
|
title: {
|
|
text: 'Etat du Rezo',
|
|
align: 'center',
|
|
verticalAlign: 'middle',
|
|
y: 40
|
|
},
|
|
tooltip: {
|
|
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
|
|
},
|
|
plotOptions: {
|
|
pie: {
|
|
dataLabels: {
|
|
enabled: true,
|
|
distance: -50,
|
|
style: {
|
|
fontWeight: 'bold',
|
|
color: 'white'
|
|
}
|
|
},
|
|
startAngle: -90,
|
|
endAngle: 90,
|
|
center: ['50%', '75%']
|
|
},
|
|
},
|
|
series: [{
|
|
type: 'pie',
|
|
name: 'Etat du Rezo',
|
|
innerSize: '50%',
|
|
data: [
|
|
['Tranchés', {{ stats[0] }}],
|
|
['Vivants', {{ stats[1] }}]
|
|
]
|
|
}]
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %}
|