score:1

Accepted answer

You can show each series in navigator by setting series.line.showInNavigator = true. To set it dynamically use series.update() method where you can pass new options for series.

Code:

let dates = [1496268000000, 1504216800000, 1512082800000, 1519858800000, 1527804000000, 1535752800000, 1543618800000, 1551394800000, 1559340000000, 1567288800000];

let aSerie = dates.map((e, i) => [e, i < 5 ? null : i]);
let bSerie = dates.map((e, i) => [e, i + 1]);
let cSerie = dates.map((e, i) => [e, i * 2]);

Highcharts.stockChart('container', {
  chart: {
    events: {
      load: function() {
        const chart = this;

        setTimeout(() => {
          chart.series[1].update({
            showInNavigator: false
          });
        }, 2000);
      }
    }
  },
  rangeSelector: {
    verticalAlign: 'top'
  },
  series: [{
    name: "aSerie",
    showInNavigator: true,
    data: aSerie
  }, {
    name: "bSerie",
    showInNavigator: true,
    data: bSerie
  }, {
    name: "cSerie",
    showInNavigator: true,
    data: cSerie
  }]
});

Demo:

API reference:


Related Query

More Query from same tag