I have a CakePhP system and am looking to output data into a Flot graph. I have been working on it for days now and I can't find a solution.
I need to plot the last 12 depth readings xaxis is reading and y axis is reading date
I can output <?php echo json_encode($depth['reading_date'] ); echo json_encode($depth['depth_reading']);?>
But I cant get that into an array for Flot to make into a graph. Please help guys! I know there is some genius that can make this look easy!
THis is what the Json outputs: "2014-03-01""0.80" "2014-03-09""0.80" "2014-03-22""0.80" "2014-04-01""0.80" "2014-04-19""0.80" "2014-05-01""0.80" "2014-05-30""0.80" "2014-06-18""0.80" "2014-07-01""0.80" "2014-08-15""0.80" "2014-09-01""0.80" "2014-10-13""0.80"