stock chart with Dates on same x axis and Tooltip - Javascript highcharts

Javascript examples for highcharts:Chart Tooltip

Description

stock chart with Dates on same x axis and Tooltip

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://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
      <script type="text/javascript">
$(function() {//from ww  w  . j a  va2  s .  c o m
        chart = new Highcharts.StockChart({
            chart: {
                renderTo: 'container',
                alignTicks: false
            },
            rangeSelector: {
                selected: 1
            },
            title: {
                text: 'AAPL Historical'
            },
            yAxis: [{
                title: {
                    text: 'RBWQCR '
                },
                height:100,
                lineWidth: 2
            }, {
                title: {
                    text: 'JPXZTO'
                },
                top: 200,
                height: 100,
                offset: 0,
                lineWidth: 2
            } , {
            title: {
                    text: 'CXRCTO'
                },
                top: 320,
                height: 100,
                offset: 0,
                lineWidth: 2
            } ,{
            title: {
                    text: 'FLOPAP '
                },
                top: 450,
                height: 100,
                offset: 0,
                lineWidth: 2
            } ,
                   ],
            series: [{
                type: 'column',
                data :[[1324512000000 ,81]]
            }, {
                type: 'column',
                yAxis: 1,
                data:[[1324512000000 ,91]]
            }, {
                type: 'column',
                yAxis: 2,
                data: [[1324512000000 ,41]]
            }, {
                type: 'column',
                yAxis:3,
                data :[[1324512000000 ,51]]
            }]
        });
    });

      </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: 700px; min-width: 500px"></div>  
   </body>
</html>

Related Tutorials