roulette/templates/precampagne.html

60 lines
1.6 KiB
HTML
Raw Permalink Normal View History

{% extends "layout_precampagne.html" %}
2017-01-29 18:54:55 +00:00
{% block content %}
2018-01-12 23:30:16 +00:00
<h2>Pas de précampagne !</h2>
2017-01-29 18:54:55 +00:00
<p>
2018-01-12 23:30:16 +00:00
Reviens plus tard {{ user['firstname']+' '+user['name'] }} pour jouer à la Rézoroulette.
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>
<script type="text/javascript">
$(function () {
Highcharts.chart('container', {
chart: {
plotBackgroundColor: null,
plotBorderWidth: 0,
plotShadow: false
},
title: {
2018-01-12 23:30:16 +00:00
text: 'État du Rézo',
align: 'center',
verticalAlign: 'middle',
2017-01-30 10:12:24 +00:00
y: 60
},
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',
2018-01-16 09:41:43 +00:00
name: 'Pourcentage',
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',
}
]
}]
});
});
</script>
2017-01-29 18:54:55 +00:00
{% endblock %}