简体   繁体   English

Highcharts highstock x轴最大值/最小值不适用于3个以上数据元素

[英]Highcharts highstock x axis max/min not working with 3+ data elements

I have a some time interval that has to be shown on chart. 我有一些时间间隔必须在图表上显示。 The task is to show entire interval, no matter if it has full data or just some part. 任务是显示整个时间间隔,而不管它是否具有完整数据或仅一部分数据。 For this I try to use xAxis: { min: ... max: ... } 为此,我尝试使用xAxis: { min: ... max: ... }

It works perfectly with 1 or 2 data elements https://jsfiddle.net/pavlo0483/crobg7v2 . 它与1或2个数据元素https://jsfiddle.net/pavlo0483/crobg7v2完美配合。

But not working with 3+ elements https://jsfiddle.net/pavlo0483/4v5yxorg . 但不能使用3个以上元素https://jsfiddle.net/pavlo0483/4v5yxorg

Does anyone know how to fix it? 有谁知道如何修理它?

As morganfree commented, for this ordinal axis has to be disabled 正如morganfree所评论的那样,必须禁用此序数轴

xAxis: {
    ordinal: false,
    ...
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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