Gráfico 2.1

Evolución nº Publicaciones en España

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: 400px; height: 400px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
  chart: {
    zoomType: 'xy'
  },
  title: {
    text: 'Evolución de las publicaciones Científicas'
  },
  subtitle: {
    text: 'sobre envejecimiento en España'
  },
  xAxis: [{
    categories: ['2009', '2010', '2011', '2012', '2013', '2014',
      '2015'
    ],
    crosshair: true
  }],
  yAxis: [{ // First yAxis
    gridLineWidth: 0.5,
    title: {
      text: 'Total publicaciones I+D',
      style: {
        color: Highcharts.getOptions().colors[0]
      }
    },
    labels: {
      format: '{value} K',
      style: {
        color: Highcharts.getOptions().colors[0]
      }
    }

  }, { // Second yAxis
    gridLineWidth: 0,
    title: {
      text: 'Publicaciones envejecimiento',
      style: {
        color: Highcharts.getOptions().colors[1]
      }
    },
    labels: {
      format: '{value} K',
      style: {
        color: Highcharts.getOptions().colors[1]
      }
    },
    opposite: true
  }],
  tooltip: {
    shared: true
  },
  legend: {
    layout: 'vertical',
    align: 'left',
    x: 80,
    verticalAlign: 'top',
    y: 70,
    floating: true,
    backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'
  },
  series: [{
    name: 'Total publicaciones I+D',
    type: 'column',
    yAxis: 1,
    data: [1.303, 1.406, 1.521, 1.772, 1.845, 1.985, 2.246],
    tooltip: {
      valueSuffix: ' '
    }

  }, {
    name: 'Publicaciones envejecimiento',
    type: 'spline',
    data: [62.965, 64.649, 69.259, 73.592, 77.174, 78.287, 82.430],
    tooltip: {
      valueSuffix: ' '
    }
  }]
});