Highcharts Demo

author(s): Torstein Hønsi

by Kesav Telaprolu

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',
    events: {
      load: function() {
        this.series[0].points.forEach(function(point) {
          var pointShapeArgs = point.shapeArgs;

          console.log('Point ' + point.index + '\n-------\n' + 'Height: ' + pointShapeArgs.height );
        });
      }
    }
  },
   plotOptions: {
        series: {
            stacking: 'percent'
        }
    },
   series: [{
        data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
    }, {
        data: [144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4, 29.9, 71.5, 106.4, 129.2]
    }]
});