partidos deudores

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: 'Número de candidatos con reparaciones civiles pendientes. Agrupados por organización política.'
        },
        subtitle: {
            text: 'Candidatos a elecciones municipales y regionales 2014'
        },
        xAxis: {
            categories: [
                'UNION POR EL PERU',
                'ACCION POPULAR',
                'SOMOS PERU',
                'VAMOS PERU',
                'ALIANZA PARA EL PROGRESO',
                'FRENTE AMPLIO POR JUSTICIA, VIDA Y LIBERTAD',
                'FUERZA POPULAR',

            ],
            title: {
                text: null
            },
            labels: {
                overflow: true
            },
        },
        yAxis: {
            min: 0,
            title: {
                text: 'Número de deudores',
                align: 'high'
            },
            labels: {
                overflow: false
            }
        },
        tooltip: {
            valueSuffix: ''
        },
        plotOptions: {
            bar: {
                dataLabels: {
                    enabled: true
                }
            }
        },
        legend: {
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'top',
            x: -10,
            y: 350,
            floating: true,
            borderWidth: 1,
            backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor || '#FFFFFF'),
            shadow: true
        },
        credits: {
            enabled: false
        },
        series: [{
            name: 'Número de deudores',
            data: [
            6, 6, 5, 5, 3, 3, 3,

            ]

        }]
    });
});