简体   繁体   English

Highcharts / HighStock gapUnit 打破导航器

[英]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?知道为什么吗?

Examples例子

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

Set gapUnit and gapSize separately for navigatornavigator gapSize分别设置gapUnitgapSize

Setting gapUnit and gapSize separately for the navigator restores default behaviour.navigator gapSize分别设置gapUnitgapSize可恢复默认行为。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM