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 08:51:21 +00:00
|
|
|
<div id="container" style="min-width: 310px; max-width: 600px; margin: 0 auto"></div>
|
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: [
|
2017-01-30 08:37:54 +00:00
|
|
|
{
|
|
|
|
name: 'Tranchés',
|
|
|
|
y: {{ stats[0] }},
|
|
|
|
color: '#FF0000',
|
|
|
|
},{
|
|
|
|
name: 'Vivants',
|
|
|
|
y: {{ stats[1] }},
|
|
|
|
color: '#FFCC00',
|
|
|
|
}
|
2017-01-30 07:47:32 +00:00
|
|
|
]
|
|
|
|
}]
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2017-01-29 18:54:55 +00:00
|
|
|
{% endblock %}
|