有没有办法根据选定的navigation修正问题视图的range持续时间和强制步骤?
例如,如果选择1天范围,导航将每天踩
rangeSelector: {
selected: 0,
buttons: [ {
type: "minute",
count: 60,
text: "1h"
}, {
type: 'day',
count: 1,
text: '1d'
}, {
type: 'all',
text: 'All'
}]
},
navigator: {
xAxis: {
tickWidth: 1,
lineWidth: 1,
gridLineWidth: 1,
tickPixelInterval: 200,
range: 113600000,
labels: {
align: 'left',
style: {
color: '#888'
},
x: 3,
y: -4
}
}
}
答案 0 :(得分:0)
我禁用了导航器并使用rangeSelector来修复持续时间。
rangeSelector: {
selected: 0,
buttons: [ {
type: "minute",
count: 60,
text: "1h"
}, {
type: "minute",
count: 180,
text: "3h"
}, {
type: "minute",
count: 300,
text: "5h"
}]
},
navigator: {
enabled: false
}