Does anyone know how to get flot to display a type of 'timeline'?
E.g.
Y:
Person1| ----- -------
Person2| ------- -------
Person3| -- ----- ----
Person4| -------
_____________________
X: Jan Feb March April
I'm not sure how to display the labels on the y axis and show the data linear
Solution so far :)
$(document).ready(function(){
var d1 = [[(new Date("01/01/2009")).getTime(), 5], [(new Date("10/01/2009")).getTime(), 5]];
var placeholder = $("#placeholder");
// plot it
var plot = $.plot(placeholder, [d1], {xaxis:{mode:"time", timeformat:"%b.%y"}});
});
Thanks in advance!
Finally found the answer. Use the configuration 'ticks'.
Solution:
View the source of http://people.iola.dk/olau/flot/examples/basic.html pay particular attention to the comment
// a null signifies separate line segments
I think that should get you where you want to be.