Answer the question
In order to leave comments, you need to log in
How to update the chart without reloading the entire page?
There is an html page that includes a php file where the chart is created. The html page is updated with . How can I update the chart without refreshing the entire page. Heard about Ajax, but it turned out to update only text data.
Answer the question
In order to leave comments, you need to log in
setInterval(()=>{document.getElementById("myImg").src=document.getElementById("myImg").src.split("?")[0]+"?_="+(new Date()).getTime());},1000);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question