You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
MichaelZinsmaier-CurvedLines/exampleFlotWithDates.js

40 lines
677 B
JavaScript

$(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);
});