If you read the flot documentation, you will see that the time format is supposed to be a Javascript timestamp, that is, milliseconds since epoch (January 1 1970 00:00:00 UTC). You pass a datetime
object, so I guess that's your problem.
You can easily convert your dates to milliseconds since epoch though:
import datetime
import time
msdate = time.mktime(datetime.date(2012, 5, 25).timetuple()) * 1000
After I wrote this suggestion I saw that the flot documentation also had a suggestion of how to do in python:
import datetime
import calendar
calendar.timegm(datetime.date(2012, 5, 25).timetuple()) * 1000
Otherwise your syntax looks ok from what I can tell.