You must be logged in to post your query.
Home › Forums › Chart Support › Dashboard with slowly queries. Render and show charts successively?
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
I would imagine you would just need to use some async programming
getJson("/chart1.json",(data)=>{ make_chart(data) })
What is the difference to this?
$.getJSON("url", function(data) { chart.render(); };
You must be logged in to reply to this topic. Login/Register