Commit 450f66eb authored by MichaelZinsmaier's avatar MichaelZinsmaier

date example

parent bb64fec4
$(function() {
//<div id="exampleFlotWithDates" style="width: 800;height: 400;"></div>
var d1 = [[new Date(2000, 8, 1, 10), 20], [new Date(2000, 8, 1, 12), 60], [new Date(2000, 8, 1, 14), 30], [new Date(2000, 8, 1, 22), 80]];
var options = {
series : {
curvedLines : {
active : true
}
},
xaxis : {
mode : "time",
minTickSize : [1, "hour"],
min : (new Date(2000, 8, 1)),
max : (new Date(2000, 8, 2))
},
yaxis : {
min : 10,
max : 90
}
};
$.plot($("#exampleFlotWithDates"), [{
data : d1,
lines : {
show : true
},
curvedLines : {
apply : true,
}
}, {
data : d1,
points : {
show : true
}
}], options);
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment