Is there a way to set the default zoom on highstocks without having the selector buttons. I have limited space, and dont want to use the default date ranges. instead I prefer to use the slider under the graph But when I disable the rangeSelector, it defaults to using the whole range, rather than in my case, the last 24 hours. I can get it to work by having only one button on the selector, but then its taking up space which could be used for the graph.
Any ideas on what I can do?
Thanks
You can use the xAxis min and max option to get what you want. Disable the range selector and add the option to xAxis.
Check the jsfiddle http://jsfiddle.net/4txudb31/1/
xAxis: {
ordinal: false,
min: fromtimestamp,
max: totimestamp
},
rangeSelector: {
enabled: false
},
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.