In the `options` object you pass to $.plot():
code:
options = {
xaxes: [{
tickFormatter: xTickFormatter,
mode: "time",
timezone: "browser"
}],
and xTickFormatter looks like this:
code:
function xTickFormatter (val, axis) {
var d = new Date(val),
h, m;
h = d.getHours();
m = d.getMinutes();
m = m < 10 ? "0" + m : m;
return [
d.getDate(), " ", months[d.getMonth()],
"<br>",
h, ":", m
].join("");
}
months[] is an array defined earlier:
code:
months = ["Jan", "Feb" . . . "Nov", "Dec"];
|