I need some advice/inputs.
What I have is a timestamp (that goes to the x-axis) and two readings:
First reading is “total”.
Second reading is “Out of total”.
The two readings are amount of time and comes from my database in this format: HH:MM:SS and goes to the y-axis.
I want to make a column-chart with the two readings next to each other so it’s easy to compare them.
What I’m doing now is to convert (with PHP, before data is being sent to Highcharts) the HH:MM:SS to HH.MM and this is working fine. But in the tooltip I want it to display the reading as HH:MM.
This is how my data looks like now:
Code: Select all
[ [1496872800000,17.24,1.07], [1496959200000,17.25,1.28], [1497045600000,17.27,5.46], [1497132000000,0.00,0.00] ]
Code: Select all
[ [1496872800000,17:24,1:07], [1496959200000,17:25,1:28], [1497045600000,17:27,5:46], [1497132000000,0:00,0:00] ]
To sum up:
What I basically is trying to achieve is one of these two:
1: Format the tooltip to show XX:YY instead of XX.YY - Guess this can be done using the Tooltop Formatter.
2: Feed Highcharts with y-axis data in XX:YY format - Can this be done and is this this a more correct way to go than number 1?
Kind Regards