Displaying multiple series in the navigator of an HighStock chart - Javascript highcharts

Javascript examples for highcharts:Chart Series

Description

Displaying multiple series in the navigator of an HighStock chart

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-3.1.1.js"></script> 
      <script type="text/javascript">
$(function () {//from  w w w.  j  a  va  2  s .c om
    Highcharts.stockChart('container', {
        rangeSelector: {
            selected: 1
        },
      plotOptions: {
           series: {
               showInNavigator: true // Global value
            }
        },
        series: [{ // This series has no value set and will use global
            name: 'MSFT',
            data: MSFT
        },
        {
            name: 'GOOGL',
            showInNavigator: false, // Individual series value
            data: GOOGL
        },
        {
            name: 'ADBE',
            showInNavigator: true, // Individual series value
            navigatorOptions: { // Specific values that affect the series in the navigator only
               type: 'line',
               color: 'red'
            },
            data: ADBE
        }]
    });
});

      </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