开发者

HighCharts - Graph axis starting BEFORE first data point

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜