Highcharts Demo

author(s): Torstein Hønsi

by santannalucas

HTML

<div id="container" style="height: 400px"></div>
<script src="http://code.highcharts.com/highcharts.js"></script>

JavaScript

$(function() {
  $('#container').highcharts({
    chart: {
      type: 'column'
    },
    xAxis: {
      categories: ['01', '02', '04', '05', '07', '09', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', 'Doz']
    },
    yAxis: {
      plotLines: [{
        color: '#FF0000',
        width: 2,
        value: 80,
        zIndex: 5
      }]
    },
    legend: {
      layout: 'vertical',
      floating: true,
      backgroundColor: '#FFFFFF',
      align: 'right',
      verticalAlign: 'top',
      y: 60,
      x: -60
    },

    tooltip: {
      formatter: function() {
        return '<b>' + this.series.name + '</b><br/>' +
          this.x + ': ' + this.y;
      }
    },
    series: [{
      data: [5, 3, 2, 4, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4, 6]
    }]
  });
});