plot scatter and columnrange graph with multiple y-axis - Javascript highcharts

Javascript examples for highcharts:Column Chart

Description

plot scatter and columnrange graph with multiple y-axis

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() {/*from   w  w w .  j a  v a 2s. c  o  m*/
  $('#container').highcharts({
     chart: {
       inverted: true,
    },
    yAxis: [{
      type: 'datetime',
      title: {
        text: null
      }
    }],
    xAxis: [{
      height: '45%'
    }, {
      offset: 0,
      top: '55%',
      height: '45%'
    }],
    series: [{
      xAxis: 0,
      type: 'scatter',
      marker: {
        enabled: true,
        symbol: 'triangle'
      },
      data: [
        [0, 1356977700000],
        [0, 1359656100000],
        [0, 1364753700000]
      ]
    }, {
      xAxis: 1,
      type: 'columnrange',
      data: [
        [0, 1356977700000, 1359656100000],
        [0, 1362075300000, 1364753700000]
      ]
    }]
  });
});

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

Related Tutorials