Home forums Using CanvasJS Autorefresh Graph which uses database values

This topic contains 1 reply, has 2 voices, and was last updated by  Manoj Mohan 4 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25350

    My Multiseries graph takes values from database, is there a way i can autorefresh my graph is 3 seconds so it takes newer values from database

    #25356

    @dillon,

    Please take a look at the following examples to create a chart from database using:

    1. PHP
    2. ASP.NET MVC
    3. JSP
    4. Spring MVC

    To auto-refresh the chart every 3 seconds, you can use setInterval() method to call an AJAX request whose response can be parsed to update the chart dataPoints accordingly. Please take a look at this documentation page for updating chart dynamically using an AJAX request.

    In case the above resource doesn’t help, can you kindly let us know the Server Side technology you are using so that we can help you out with an appropriate solution?

    —–
    Manoj Mohan
    Team CanvasJS

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

You must be logged in to reply to this topic.