Grouped Column with Time Series - Javascript highcharts

Javascript examples for highcharts:Column Chart

Description

Grouped Column with Time Series

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">
$(function() {//from  w  w w  .  j a va2  s .c o  m
    var data =
[
    /* Apr 2013 */
    {name:"T1",x:1364774400000, y:13918927, color:"red"},
    {name:"T1",x:1364774400000, y:10920462, color:"green"},
    [1364860800000,18920462],
    [1364947200000,12971961],
    /* May 2013 */
    [1367366400000,18112671],
    [1367452800000,15072312]
];
      $('#container').highcharts('StockChart', {
          chart: {
              alignTicks: false,
                type: 'column'
          },
            plotOptions: {
            series: {
                pointPadding: 0,
                groupPadding: 0,
                borderWidth: 0,
                shadow: false
                }
            },
          rangeSelector: {
              selected: 1
          },
          title: {
              text: 'AAPL Stock Volume'
          },
          series: [{
              name: 'AAPL Stock Volume',
              data: data
          }],
            xAxis: {
                categories: ['Apr', 'May'] ///needs to be specific to your data, this is just an idea not knowing your data
            },
      });
   //});
});

      </script> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/stock/highstock.js"></script> 
      <script src="https://code.highcharts.com/stock/modules/exporting.js"></script> 
      <div id="container" style="height: 500px"></div>  
   </body>
</html>

Related Tutorials