Flot — «битая» ячейка по оси x
Пытаюсь эмигрировать с jqplot на flot. Когда пытаюсь отобразить последние 32 дня, то получаю «битую» ячейку спереди:
http://i.imgur.com/2E9NR.png?1?8626 Как от неё избавиться? Опции:
var currentDate = new Date()
var day = currentDate.getDate() + 1
var month = currentDate.getMonth() + 1
var year = currentDate.getFullYear()
cur_date = month+"/"+day+"/"+year
prev_date = currentDate.getMonth()+"/"+day+"/"+year
var flot_options = {
series: {
lines: { show: true },
points: { show: true }
},
xaxis:{
mode: "time",
timeformat: "%d",
//ticks: 32,
//minTickSize: [1, "day"],
tickSize: [1, "day"],
min: (new Date(prev_date)).getTime(),
max: (new Date(cur_date)).getTime(),
},
};
|
min: (new Date("2012/10/20")).getTime() + 14400000,
max: (new Date("2012/11/21")).getTime() + 14400000, Проблема была в UTC. |
| Часовой пояс GMT +3, время: 00:33. |