Offset displayed data 4 hours forward on x axis in stock chart - Javascript highcharts

Javascript examples for highcharts:Chart Axis

Description

Offset displayed data 4 hours forward on x axis in stock chart

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <title>Highcharts Demo</title> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/stock/highstock.src.js"></script> 
      <div id="container"></div> 
      <script type="text/javascript">
var chart = Highcharts.stockChart('container', {
   xAxis: {//from   w  w  w. jav a  2s  . c  o m
     min: Date.UTC(2017, 0, 1)
  },
  series: [{
    data: [
      [Date.UTC(2017, 0, 1, 4), 3],
      [Date.UTC(2017, 0, 2, 4), 1],
      [Date.UTC(2017, 0, 3, 4), 7]
    ]
  }]
});

      </script>  
   </body>
</html>

Related Tutorials