Evolution du vote FN en % des votants en Lorraine
Evolution du vote FN en % des votants en Lorraine
by Thomas Toussaint
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'column'
},
title: {
text: 'Evolution du vote FN en % des votants en Lorraine'
},
subtitle: {
text: 'Source: http://www.interieur.gouv.fr/'
},
xAxis: {
categories: ['Reg 1998', 'PR 2002', 'Reg 2004', 'PR 2007', 'Reg 2010', 'PR 2012', 'E 2014', 'Dep 2015', 'Reg 2015'
],
crosshair: true
},
yAxis: {
min: 0,
title: {
text: '% des votants'
}
},
tooltip: {
headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
'<td style="padding:0"><b>{point.y:.2f} %</b></td></tr>',
footerFormat: '</table>',
shared: true,
useHTML: true
},
plotOptions: {
column: {
pointPadding: 0.2,
borderWidth: 0
}
},
series: [{
name: '1er tour',
data: [16.42, 21.23, 17.59, 14.43, 14.87, 23.66, 30.55,29.37, 35.88],
color:'#00008B'
}, {
name: '2nd tour',
data: [0, 20.69, 17.37, 0, 18.44, 0, 0,29.39, 34.98]
}]
});
});