Mark Walsh
Mark Walsh

Reputation: 3361

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?

Upvotes: 3

Views: 831

Answers (1)

Carsten Hellweg
Carsten Hellweg

Reputation: 214

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.

Upvotes: 3

Related Questions