--- a/viewcalls.php +++ b/viewcalls.php @@ -53,7 +53,7 @@ }); - getData('<?php echo $tgid; ?>','<?php echo strtotime("10/10/2012") ?>','<?php echo strtotime("12/10/2012") ?>'); + getData('<?php echo $tgid; ?>','<?php echo strtotime("10/10/2012") ?>','<?php echo strtotime("10/21/2012") ?>'); }); @@ -61,7 +61,7 @@ data =[] data[data.length] = series; - plot = $.plot($("#placeholder"), data, options); + plot =Flotr.draw(placeholder, data, options); } function getData(sensorID,from,to) { $.ajax({