如何根据所选范围修复高图导航和步骤?
How to fix highchart navigation and step based on selected range?
有没有办法修复 highchart navigation duration and force step based on selected 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
}
}
}
我禁用了导航器并使用 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
}
有没有办法修复 highchart navigation duration and force step based on selected 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
}
}
}
我禁用了导航器并使用 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
}