UNIX Timestamps and FLOT (using date.js)

Implementing FLOT charting into a project is easy and very customizable. Ive been using FLOT for a while and you can extend it to do just about anything you need…

Implementing FLOT charting into a project is easy and very customizable. Ive been using FLOT for a while and you can extend it to do just about anything you need to. One important thing to remember so you do not pull your hair out is the importance of date format in time series data. Use date.js ( to format your unix timestamps and you will save yourself some trouble. Some modern browsers like Chrome and Firefox won’t care but IE8 and Safari need full unix timestamps.

Usage

var xdate = Date.parse("2013-01-01").getTime();