Skip to content Skip to sidebar Skip to footer

Jquery Flot Xaxis Time Format

I'am using jQuery Plot for my graph. I have a list with some timestamp's and value's from a database. I want to convert my timestamp to H:i:s format. This results are from 10-05-20

Solution 1:

Flot uses JavaScript timestamps, which are expressed in milliseconds rather than the usual seconds. So you need to multiply your timestamps by a thousand.

Solution 2:

The Time format mentioned is not recognized by flot. Please use %y/%m/%d

Post a Comment for "Jquery Flot Xaxis Time Format"