简体   繁体   中英

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: ... }

It works perfectly with 1 or 2 data elements https://jsfiddle.net/pavlo0483/crobg7v2 .

But not working with 3+ elements https://jsfiddle.net/pavlo0483/4v5yxorg .

Does anyone know how to fix it?

As morganfree commented, for this ordinal axis has to be disabled

xAxis: {
    ordinal: false,
    ...
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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