Home › forums › Chart Support › PHP dynamic graph interval update
Tagged: canvasjs, JSON, php
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
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.
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.
You must be logged in to reply to this topic.