[英]Highcharts / HighStock gapUnit breaks navigator
I set gapUnit = 'value'
in order to specify a gapSize
in milliseconds.我设置
gapUnit = 'value'
以便以毫秒为单位指定gapSize
。 This was done like this:这是这样做的:
plotOptions: {
series: {
dataGrouping: {enabled: true},
showInNavigator: true
},
line: {
gapSize: 15 * 60 * 1000,
gapUnit: 'value'
}
}
Setting gapUnit
breaks the navigator
at the bottom.设置
gapUnit
会破坏底部的navigator
。 It remains empty.它仍然是空的。 Any idea why?
知道为什么吗?
Here is an official working example .这是一个官方的工作示例。 It no longer works when changing the
gapUnit
to 'value'
: https://jsfiddle.net/stroobandt/f57qs9a4/将
gapUnit
更改为'value'
时不再起作用: https : gapUnit
gapUnit
and gapSize
separately for navigator
navigator
gapSize
分别设置gapUnit
和gapSize
Setting gapUnit
and gapSize
separately for the navigator
restores default behaviour.为
navigator
gapSize
分别设置gapUnit
和gapSize
可恢复默认行为。
navigator: {
series: {
gapUnit: `relative`,
gapSize: 0,
},
},
See also: https://jsfiddle.net/stroobandt/e6k3h550/另见: https : //jsfiddle.net/stroobandt/e6k3h550/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.