Gráfico 1.4

author(s): JLFN

by Jose Luis Fernández

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

Highcharts.chart('container', {
    chart: {
        type: 'column'
    },
    title: {
        text: 'Diez áreas más prolíficas en<br> investigación sobre envejecimiento'
    },
    xAxis: {
        categories: ['2009', '2010', '2011', '2012', '2013', '2014', '2015']
    },
    yAxis: {
        min: 0,
        title: {
            text: 'Peso porcentual de las publicaciones'
        }
    },
    tooltip: {
        pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b> ({point.percentage:.0f}%)<br/>',
        shared: true
    },
    plotOptions: {
        column: {
            stacking: 'percent'
        }
    },
    series: [{
        name: 'Geriatría y Gerontología',
        data: [24, 24,	24, 26, 23, 21, 23]
    }, {
        name: 'Neurociencias y Neurología',
        data: [17, 17, 16, 17, 15, 17, 15]
    }, {
        name: 'Bioquímica y Biología Molecular',
        data: [6, 6, 6, 6, 5, 6, 5]
    }, {
        name: 'Psiquiatría',
        data: [6, 5, 7, 5, 6, 5, 5]
    }, {
        name: 'Farmacología y Farmacia',
        data: [5, 5, 5, 5, 5, 5, 5]
    }, {
        name: 'Medicina General e Interna',
        data: [5, 5, 5, 5, 5, 5, 5]
    }, {
        name: 'Psicología',
        data: [5, 4, 6, 4, 5, 5, 5]
    }, {
        name: 'Sistema Cardiovascular y Cardiología',
        data: [4, 5, 4, 4, 4, 4, 4]
    }, {
        name: 'Oncología',
        data: [4, 4, 4, 4, 4, 4, 4]
    }, {
        name: 'Biología Celular',
        data: [4, 4, 4, 4, 4, 4, 4]
    }, {
        name: 'Resto de Areas Científicas',
        data: [21, 22, 20, 21, 24, 26, 25]
    }
    
    ]
});