Accepted answer

you are right, timestamps in javascript are milliseconds so you should multiply everything by 1000.

for the other problem it comes from the fact that your data is ordered backwards. apparently highcharts is messing up when the series are not properly ordered.

here's the correction for your code:


an easy way to work with timestamp (milliseconds) in highcharts is use the formatter. so first receive your time values as unix timestamp and then set one of the features below in the chart:

using in xaxis labels:

         return highcharts.dateformat('%y %m %d',this.value);

using in tooltip:

tooltip: {
    readerformat: {
        formatter: function(){
         return highcharts.dateformat('%y %m %d',this.value);
    pointformat: '{point.y} ms',
    shared: true

an exemple of code with tooltip

a reference about formatter

Related Query

More Query from same tag