stacked column charts - Javascript highcharts

Javascript examples for highcharts:Column Chart

Description

stacked column charts

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <title>Highcharts Demo</title> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
      <script type="text/javascript">
$(function () {// w w  w . j a v a2 s  .c  o m
    $('#container').highcharts({
        chart: {
            type: 'column'
        },
        xAxis: {type:'datetime'
        },
        plotOptions: {
            series: {
                stacking: 'normal',
                pointRange:10000000
            }
        },
        series: [{"color":"rgb(255,251,118)","name":"Minor","data":[[1375212600000,300]]},{"color":"rgb(255,199,114)","name":"Major","data":[[1375241400000,200]]}]
    });
});

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

Related Tutorials