In the latest installment of our Tableau Data Series, you'll learn how to animate your Tableau dashboards on the Web. This will require basic understanding of Tableau -- basic HTML and Javascript knowledge will also be helpful.

Background

Tableau dashboard developers have long wanted to show how things change over time in their views. In Tableau desktop this is possible using the Pages shelf and clicking the play button. The problem however, is that this functionality does not work on Tableau Server or Tableau Public...that is, until now.

Prerequisites

Tableau workbook that can be modified by changing a filter or parameter value Tableau Server or account on Tableau Public Web Server to host animated viz (optional)

Setup

Make sure your viz will look good when the parameter value is changed. (I’m saying parameter, but it could also be just a field in your data set that is being used in your viz). Publish your viz to Tableau Server or Tableau Public. Keep in mind that anything on Tableau Public can be viewed by anyone, so be careful when publishing sensitive data. Copy animate.html from here (html) to your Web server Inside animate.html, add your URLs to the locations array starting at line 25 (examples included in html) Publish your animate.html to a Web server of your choice. You may also fork this repository and use github’s pages as a free hosting of sorts. Browse to your new animated map, tweak any settings that might not be right, like the time spent on each viz (setInterval parameter in animate.html).

We offer plenty of Tableau training on Pluralsight, in addition to our series of tips and tricks. In case you missed out on some of our earlier posts in the series, you can catch up here:

Examples

Enjoy!