1 Reply Latest reply on Oct 20, 2016 4:37 PM by Patrick A Van Der Hyde

    Not sure how to implement this java script

    Austin Hardesty

      I would like to automate my map using JS API. When I put the following code into my JS file, my map does not show up (This is without calling the functions even). How do I get these 2 functions to work with my Viz? Basically, I want the parameter to increment automatically.

       

      var i=1

       

      function animate() {

       

        if(i<=144) {

        window.setTimeout(“animate()”,“1000”); animate1(i); i++; }

        }

       

        function animate1(a) {

        Map4_6.changeParameterValueAsync(“Row Parameter”, [a]);

        }

       

      My Viz: Tableau Public

      This website uses JS API to create automated visualizations but I can't get it to work: Tableau Renders — Animated Charts (with Tableau)