ブラウザで flot データを表示できない
var plot = $.plot($("#placeholder"),
[{ data: capacityList, label: "Capacity(MsgNumber/min)"}],
{
series:
{
lines: { show: true },
points: { show: true }
},
crosshair: { mode: "x" },
grid: { hoverable: true, clickable: true },
yaxis: {
axisLabel: "MsgNumber",
min: 0
},
xaxis: {
axisLabel: "Time",
mode: "time",
timeformat: "%H:%M",
tickSize: 1000 * 60 * 60
}
});
capacityList は配列で、要素はプロパティを持つオブジェクトDatetimeStamp & MsgNumber
です:
capacityList[12]
Object
DatetimeStamp: 1345681620000
MsgNumber: 15