Displaying hours and minutes on x-axis with Highcharts

Viewed 48387

I want to output the following data (time, battery level) in a area chart:

data: [
    [08.15, 14.8],
    [08.20, 13.9],
    [08.25, 12.8],
    [08.30, 11.8],
    [08.35, 13.9],
    [08.40, 14.1],
    [08.45, 13.9],
    [08.50, 14],
    [08.55, 14],
    [09.00, 14.1],
    [09.05, 14.4]
]

the x-axis should start at 00.00 am AM 00.00 PM, a whole day.

Unfortunately I do not understand which options to use, when I review the API. What I get now is an x-axis that goes from 8.00~8.55,8.60,8.65 ~ 9.00. So it uses a decimal system instead of a minute system.

How do I configure that the line should consist of 24 hours with 60 minutes?

With the current data, the chart would be kind of empty, only having points around 8.00am to 9.00 am.

I hope someone can help me on my way.

Thanks,

Mattijs

2 Answers
Related