Dan Mason Dan Mason - 1 month ago 10x
jQuery Question

HighCharts - data points not appearing

I have created a dynamically generated timeline using php. The data generation is always the same, but for a specific set of date/times the data points do not appear on the chart.

  • 29th April 2013 - 06:00:00 -> 1st May 2013 - 06:00:00 <--- Working

  • 29th April 2013 - 06:00:00 -> 2nd May 2013 - 06:00:00 <--- Broken

enter image description here

I have created a jsFiddle showing both charts (A working version and a broken version). Below is an example of how each data point is defined.

intervals: [{
from: Date.UTC(2013, 3, 29, 06, 12, 31),
to: Date.UTC(2013, 3, 29, 06, 17, 13)

I cannot see what is incorrect in the broken chart. The data format is exactly the same in both, yet the second chart's data points do not appear.

Any help would be appreciated, cheers!

Edit: In the jsFiddle the broken chart code (in the javascript section) starts on line 968


Thanks to ssarabondo and Sebastian Bochan for suggestions. The issue has now been fixed. The problem was to do with a max limit of data points.

"When a series contains a data array that is longer than this, only one dimensional arrays of numbers, or two dimensional arrays with x and y values are allowed. Also, only the first point is tested, and the rest are assumed to be the same format. This saves expensive data checking and indexing in long series. Defaults to 1000."

[Source - http://api.highcharts.com/highcharts#plotOptions.series.turboThreshold]

Since my data sets are not going to be larger than 10,000 I changed the "turboThreshold".


I dont think this is advisable when working with much larger data sets though.

Here is the updated jsFiddle

And thanks to all who offered some help.