2017-01-29 23:58:56 +00:00
|
|
|
{% extends "layout_precampagne.html" %}
|
2017-01-29 18:54:55 +00:00
|
|
|
{% block content %}
|
|
|
|
<h2>Pas de précampagne!</h2>
|
|
|
|
<p>
|
2017-01-29 23:05:29 +00:00
|
|
|
Reviens plus tard {{ user['firstname']+' '+user['name'] }} pour jouer à la rezo-roulette
|
2017-01-29 18:54:55 +00:00
|
|
|
</p>
|
2017-01-30 07:47:32 +00:00
|
|
|
<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>
|
2017-01-29 18:54:55 +00:00
|
|
|
{% endblock %}
|