score:1

Accepted answer

that feature is not implemented in stock tools, but it could be very useful so you can create a new feature request here: https://github.com/highcharts/highcharts/issues/new/choose

workaround:

all indicator series from plot options are added to stock tools, so you can customize chart.options.plotoptions, for example in load event:

chart: {
  events: {
    load: function() {
      var plotoptions = this.options.plotoptions,
        filteredseries = {};

      highcharts.objecteach(plotoptions, function(option, key) {
        if (!option.params || key === 'dema' || key === 'customlinearregression') {
          filteredseries[key] = option;
        }
      });

      this.options.plotoptions = filteredseries;
    }
  }
}

live demo: https://jsfiddle.net/blacklabel/xwec9hr7/2/

useful example: https://www.highcharts.com/stock/demo/stock-tools-custom-gui

code reference: https://github.com/highcharts/highcharts/blob/371424be0b168de96aa6a58b81ce0b2b7f40d5c5/ts/annotations/popup.ts#l783


Related Query

More Query from same tag