Want to refresh your #Tableau viz sitting out on Tableau Server?
Just copy and paste this code into a text file, save it as “SomeFileName.html”, and you’re good to go.
It renders a dashboard using the Tableau JavaScript API, which you can learn more about here. You can also use the old school meta refresh approach, but it refreshes the whole page vs. just the viz.
Couple of questions I’ve heard over the years on this topic:
Q: Can I automatically refresh a dashboard in Tableau Desktop?
A: No. Sorry.
Q: When your example runs and refreshes the viz every 5 seconds, I see a distinct greying of the viz when the refresh occurs. I don’t want this. I want the viz to refresh transparently, like a “status monitoring tool” or stock ticker would.
A: Nope. Tableau is an analytics tool, not a stock ticker displaying mechanism – our behaviors are built to suit what consumers of analytics expect. The behavior is there on purpose to let users know that we’re working (after a filter is applied or data is being refreshed) and that the viz cannot be interacted with for the moment. We don’t want to confuse ‘em.