You must be logged in to post your query.
Home › Forums › Chart Support › PHP dynamic graph interval update
Tagged: canvasjs, JSON, php
Hi! I have managed to plot my graph but I’m not sure how to update the graph for new values and shifting the graph. Any help is greatly appreciated! Here are my files
@mrt4c,
Please take a look at this gallery example for creating a Dynamic chart in PHP. To trigger the shift operation in the dataPoints please use the shift() as shown in this documentation page.
___________ Indranil Deo Team CanvasJS
Hi! The way to update the graph is to get the updated JSON array from php. The example code generates the x and y values whereas mine is retrieved from php. Take a look at my code, especially the updating function. It doesn’t work and I dont think its the right way to write a javascript code. Not sure if javascript works the same as python, c, c++, etc.
You must be logged in to reply to this topic. Login/Register