In a flot graph depending on the viewers timezone setting the points may or may not fall on vertical grid bars. Actually, only when the local timezone is set to utc the points are on the date bars. This does make sense as the time the sample refers to is not the same clock-time in all timezones.
However, for an application I want to turn this behavior off and display the same graph whatever the local machine's timezone is.
For that I thought I might be somehow able to set the timezone for the script to UTC (not changing the setting in Windows. Is this possible?
The API documentation may be of help, scroll down to the section "Time series data". I think that this may help you to solve your problem:
http://people.iola.dk/olau/flot/API.txt
精彩评论