--- a/myway/myway_timeliness_stop.php +++ b/myway/myway_timeliness_stop.php @@ -46,9 +46,7 @@ var data = []; var options = { xaxis: { - mode: "time", - min: midnight + (1000*60*60*8), - max: midnight + (1000*60*60*23.5) + mode: "time" }, yaxis: { tickFormatter: yformatter @@ -77,9 +75,6 @@ var dataurl = "myway_timeliness_stop.json.php?stopid=" + select.val(); // then fetch the data with jQuery function onDataReceived(series) { - // extract the first coordinate pair so you can see that - // data is now an ordinary Javascript object - var firstcoordinate = '(' + series.data[0][0] + ', ' + series.data[0][1] + ')'; // let's add it to our current data