Reputation:
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
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