Is there a way within the JS API to issue a redraw command for the bottom chart?
I saw the 'reload' command, but that seems a bit heavy-handed.
Documentation for Reload
Also, I tried wrapping the 'api.reload()' command in a 'setTimeout', but the parser complained about 'setTimeout'. Is there a simple implementation that can call the 'reload' or a 'redraw' function every 30 seconds?
This is what I tried unsuccessfully:
Code: Select all
setTimeout(function() {
api.reload();
}, 30000);