Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highchart - Plot missing DateTime values on xAxis

I am currently plotting points by DateTime and Value using HighCharts. The points are per minute. Currently, it's drawing a connecting line between the points as can be seen below.

Graph

What I'd prefer is to be able to plot a point for each minute inbetween (if there is no value), is this possible with HighCharts? Or would I have to loop through each minute and add it to the data series with a null value?

like image 295
Mark Walsh Avatar asked Sep 08 '26 20:09

Mark Walsh


1 Answers

you can also create an array with every minute in it and then merge that with the values you have ... or you use the method, that you suggested. I found using an "empty" array easier.

like image 54
Carsten Hellweg Avatar answered Sep 11 '26 10:09

Carsten Hellweg