|
|
|
@ -40,8 +40,53 @@ |
|
|
|
<div id="content_bottomright" class="corner"> |
|
|
|
</div> |
|
|
|
<div id="footer">contact technique : <a href="mailto:roulette@metzquetaires.fr">roulette@metzquetaires.fr</a></div> |
|
|
|
<div id="container" style="min-width: 310px; max-width: 600px; margin: 0 auto"></div> |
|
|
|
<div id="container" style="min-width: 310px; max-width: 600px; margin: 0 auto; height: auto"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<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> |
|
|
|
</body> |
|
|
|
</html> |
|
|
|
|