Do you mind sharing all your code, please?
I can get it working now.
I found the problem was the fact of using 3 vizes (iframes) and both are of the same dashboard in Tableau. I solved the problem by using 3 different dashboards, one for each viz.
I will share my code using Tableau public as soon as i can but for now the problem was solved this way.
I am glad to hear that