Highcharts Demo

author(s): Torstein Hønsi

by gokulmaha

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
    chart: {
        type: 'column'
    },
    title: {
        text: 'Monthly Average Rainfall'
    },
    subtitle: {
        text: 'Source: WorldClimate.com'
    },
    xAxis: { 
        crosshair: true
    },
    yAxis: { 
        title: {
            text: 'Rainfall (mm)'
        }
    },
   
    plotOptions: {
        column: {
            pointPadding: 0.2,
            borderWidth: 0
        }
    },
    series: [[201809,1],[201808,2],[201807,4],[201806,3],[201805,2],[201804,1],[201803,3],[201802,1],[201801,2],[201712,3],[201711,3],[201710,2],[201709,2],[201708,2],[201707,4],[201706,3],[201705,4],[201704,3],[201703,3],[201702,1],[201701,1],[201612,2],[201611,2],[201610,4],[201609,1]]
});