user801116
user801116

Reputation:

How to programmatically set navigator handles in highstock?

Is there a way I can programmatically set the markers in highstock navigator, even though I want to keep marker to be set to { type: "day", count: 1, text: "1d" } but not display Zoom 1d.

Upvotes: 0

Views: 947

Answers (1)

Paweł Fus
Paweł Fus

Reputation: 45079

It's possible to set extremes without rangeSelector using xAxis.setExtremes() method: http://plnkr.co/edit/bRnV1lyJHmmx7YURTggq?p=preview

  chart: {
    renderTo: 'container',
    height: 600,
    events: {
      load: function() {
        var max = this.xAxis[0].max,
            range = 24 * 3600 * 1000; // one day

        this.xAxis[0].setExtremes(max - range, max);
      }  
    }
  },

Upvotes: 1

Related Questions