如何从 highstock 中删除 From 和 To 过滤器?
How to remove From and To filters from highstock?
是否有一个选项可以从 Highstock 中删除 From & To 过滤器?检查下图以检查需要删除的部分。
范围选择器选项
rangeSelector: {
selected: 2,
buttons: [ {
type: "minute",
count: 60,
text: "1h"
}, {
type: 'day',
count: 1,
text: '1d'
}, {
type: 'day',
count: 30,
text: '1m'
}, {
type: 'day',
count: 90,
text: '3m'
}, {
type: 'day',
count: 180,
text: '6m'
}, {
type: 'all',
text: 'All'
}]
}
只需将 inputEnabled 设置为 false 即:
rangeSelector: {
inputEnabled:false,
//...
}
是否有一个选项可以从 Highstock 中删除 From & To 过滤器?检查下图以检查需要删除的部分。
范围选择器选项
rangeSelector: {
selected: 2,
buttons: [ {
type: "minute",
count: 60,
text: "1h"
}, {
type: 'day',
count: 1,
text: '1d'
}, {
type: 'day',
count: 30,
text: '1m'
}, {
type: 'day',
count: 90,
text: '3m'
}, {
type: 'day',
count: 180,
text: '6m'
}, {
type: 'all',
text: 'All'
}]
}
只需将 inputEnabled 设置为 false 即:
rangeSelector: {
inputEnabled:false,
//...
}