Home Forums Chart Support Dashboard with slowly queries. Render and show charts successively?

Dashboard with slowly queries. Render and show charts successively?

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

    Hi,

    i have some charts on the same dashboard and fetch all requests with getJSON inside window.onload function.

    The problem is, that one query have some joins and is very slowly. So all charts are only shown when all json have been loaded completly.

    Is it possible to render the single charts successively / right after getjson was executed? Or how do handle this?

    Thanks
    Marco

    #28228

    I would imagine you would just need to use some async programming

    getJson("/chart1.json",(data)=>{
       make_chart(data)
    })
    #28300

    What is the difference to this?

    $.getJSON("url", function(data) {
    chart.render();
    };
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.