For the X-Axis input, I gave it as a timespan which starts from 15-06-2012 11:32 to 15-06-2012 12:20. but the graph x-axix shows from 6:10 to 6:50. I want the graph to display the actual time. My code runs as
xaxis: { mode: "time", minTickSize: [1, "minute"],
min: xMin.getTime(),
max: xMax.getTime()
},
Please help me in sorting this out.
Flot by default displays UTC timestamps on your time axis. Not until very recently do you have the opportunity to select
xaxis: { mode: "time", timezone: "local" }. This is probably what you want.In your example, if you compute
xMinandxMaxwithsetUTCHoursinstead ofsetHoursetcetera you should se the range of the axis correspond better with the data points. With existing releases of flot, that is probably your best bet.