开发者

HighCharts - Graph axis starting BEFORE first data point

开发者 https://www.devze.com 2023-02-12 08:49 出处:网络
I am using HighCharts to produce some graphs. For some reason the graph axis do not start at 00:00 (which is the earliest data point in this case) but instead start from 23:00, which seems odd.

I am using HighCharts to produce some graphs.

For some reason the graph axis do not start at 00:00 (which is the earliest data point in this case) but instead start from 23:00, which seems odd.

I 开发者_JAVA百科have tried setting the pointStart option to the earliest data point but this doesn't help either. I set the property like so:

options.plotOptions.series.pointStart = time;

Here is an image showing the issue:

HighCharts - Graph axis starting BEFORE first data point


I figured it out, I had the startOnTick property set which, according to the documentation, may result in padding at the start. I removed this property and it all works nicely now.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号