Investigate Asynchronous JavaScript (AJAX).
plotly attempts to eliminate the need to write JavaScript. As a result, users often end up with nowhere to turn when they need simple JavaScript functions like periodic updating.
plotly