0👍
How about using setInterval
that keeps invoking your showGraph
?
setInterval(showGraph, 5000); // 5 seconds
0👍
You can easily create a Dynamic Chart from data from the MySQL database using CanvasJS. Here is a sample project you can refer to.
Source:stackexchange.com