Evolution du vote FN en % des inscrits en Lorraine

Evolution du vote FN en % des inscrits 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 inscrits 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 inscrits'
            }
        },
        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: [8.44, 14.45, 9.44, 11.85, 5.89, 18.50, 12.11, 14.05, 16.75],
						color:'#00008B'
        }, {
            name: '2nd tour',
            data: [0, 15.39, 10.10, 0, 8.32, 0, 0, 13.88, 20.34]

        }]
    });
});