Combine super impose columns for column chart - Javascript highcharts

Javascript examples for highcharts:Column Chart

Description

Combine super impose columns for column chart

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> 
      <script type="text/javascript">
var chart;//from  w w w.ja  v  a 2  s . co  m
$(document).ready(function() {
  chart = new Highcharts.Chart({
    chart: {
      renderTo: 'container',
      type: 'column'
    },
    tooltip: {
      shared: false
    },
    plotOptions: {
      column: {
         grouping: false,
        stacking: 'normal'
      }
    },
    series: [{
      name: '1',
      stack: 0,
      data: [100],
    }, {
      name: '2',
      stack: 1,
      pointPadding: 0.2,
      data: [30],
    }, {
      name: '3',
      stack: 1,
      pointPadding: 0.2,
      data: [20]
    }]
  });
});

      </script> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <script src="https://code.highcharts.com/highcharts-more.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>  
   </body>
</html>

Related Tutorials