javascript 如何从 highstocks 图表中禁用范围选择器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13308643/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to disable range selector from highstocks charts
提问by Agustin.Ferreira
I'm trying to disable the from - to range selector that comes by default in highstocks. Looked up the api documentation but didn't find a solution. Thanks for the support!
我正在尝试禁用高库存中默认提供的从 - 到范围选择器。查阅了api文档,但没有找到解决方案。感谢您的支持!
回答by JohnnyHK
In your chart config, set rangeSelector.inputEnabled
false.
在您的图表配置中,设置为rangeSelector.inputEnabled
false。
回答by Tullochgorum
The accepted answer will only disable the Range Selector;
接受的答案只会禁用范围选择器;
If you want to remove it completely, you need:
如果要完全删除它,则需要:
rangeSelector: {
enabled: false
},
回答by Ronniemittal
you can use add inputEnabled:false
您可以使用添加 inputEnabled:false
rangeSelector : {
inputEnabled:false
},
回答by Zahid
You can use for StockChart just like below:
您可以像下面一样用于 StockChart:
this.chartData = new StockChart({
title: {
text: 'Data Chart'
},
rangeSelector: {
selected: 0,
inputEnabled: false
},
series: [{
tooltip: {
valueDecimals: 2
},
name: 'Chart',
data: [],
type: undefined
}]
});