Home Forums Chart Support PHP dynamic graph interval update

PHP dynamic graph interval update

Viewing 3 posts - 1 through 3 (of 3 total)
  • #28447

    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

    #28463

    @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

    #28469

    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.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.