Making a master-detail chart using range selector - Javascript highcharts

Javascript examples for highcharts:Chart Range

Description

Making a master-detail chart using range selector

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <title>Highcharts Stock Demo</title> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.7.1.js"></script> 
      <script type="text/javascript">
$(function() {/*w w w. jav a 2  s. com*/
    var chart = new Highcharts.StockChart({
        chart: {
            renderTo: 'container',
        },
        navigator: {
            series: {
                data: ADBE    ,
                            type : 'column'
            }
        },
        rangeSelector: {
            selected: 1
        },
        series: [{
            name: 'MSFT',
            data: MSFT,
            type: 'column'
        }]
    });
});

      </script> 
   </head> 
   <body> 
      <div id="container" style="height: 400px; min-width: 600px"></div> 
      <script src="https://code.highcharts.com/stock/highstock.js"></script> 
      <script src="https://code.highcharts.com/stock/modules/exporting.js"></script> 
      <script type="text/javascript" src="https://www.highcharts.com/samples/data/three-series-1000-points.js"></script>  
   </body>
</html>

Related Tutorials