I want to create a graph in java script with time driven x axis ( x axis changes with time every 30 seconds and it moves) something like: http://canvasjs.com/editor/?id=http://canvasjs.com/example/gallery/dynamic/realtime_line/. what I did is that I get the current time with
var currentdate = new Date()
var datetime = (parseInt(currentdate.getHours() + ":"
+ currentdate.getMinutes() + ":" + currentdate.getSeconds()))
window.console.log(datetime)
and then I add 30 second to current time and show it on the x axis. but does any one know any other example of codes in which x axis show the time? something like: square.github.io/cubism – star
Thanks,