I'm working with flotchart to make a custom linechart (which is call in ajax) but I'm probably doing something wrong because he will not be displayed and i get the error :
Uncaught Error: Time mode requires the flot.time plugin.
But the jquery.flot.time.js is included so I don't understand why i got this error.
I found this link : https://github.com/flot/flot/issues/1016 which explain why flot is throwing this error but I don't understand everything...
Can someone explain to me more easily or just check what is wrong in my code ?
$(function() {
var data = [
{
label: "A0-P1-M1 10cm",
data:
[
[1388538000000, 29.8848],
[ // .. some data]
]
}
];
var options = {
legend: {
noColumns: 1
},
xaxis: {
mode: "time",
timeformat: "%d/%m %H:%M",
tickLength: 10
},
yaxis: {
show: false
}
};
var plot = $.plot("#placeholder13", data, options);
});
Thank you for your time & help. Sorry for my english.