cuota de genero partidos

by Ernesto Cabral

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; max-width: 800px; height: 500px; margin: 0 auto"></div>

JavaScript

$(function () {
    $('#container').highcharts({
        chart: {
            type: 'bar'
        },
        title: {
            text: 'Cuota femenina en total de listas por agrupación política'
        },
        subtitle: {
            text: 'Candidatos a elecciones municipales y regionales 2014'
        },
        xAxis: {
            categories: [
                'LUCHANDO POR UN FUTURO MEJOR',
                'UNIDOS POR CHAVIN',
                'PLAN PARAMONGA LIBERATE ACCIONA MUJER',
                'FRENTE INDEPENDIENTE LARAN RUMBO AL CAMBIO',
                'MAGDALENA AVANZA',
                'FUERZA CHEPEN',
                'SOMOS INDEPENDIENTES',
                'UNIDOS CONSTRUYENDO',
                'PODER PARA TODOS',
                'ESPERANZA CIUDADANA',

            ],
            title: {
                text: null
            },
            labels: {
                overflow: true
            },
        },
        yAxis: {
            min: 0,
            title: {
                text: 'Porcentaje de candidatas',
                align: 'high'
            },
            labels: {
                overflow: false
            }
        },
        tooltip: {
            valueSuffix: ''
        },
        plotOptions: {
            bar: {
                dataLabels: {
                    enabled: true
                }
            }
        },
        legend: {
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'top',
            x: -10,
            y: 430,
            floating: true,
            borderWidth: 1,
            backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor || '#FFFFFF'),
            shadow: true
        },
        credits: {
            enabled: false
        },
        series: [{
            name: 'Porcentaje de candidatas',
            data: [
            70, 66.7, 66.7, 66.7, 60, 60, 57.7, 56.7, 56.3, 52.6,

            ]

        }]
    });
});