1 Reply Latest reply on Jan 16, 2017 1:26 PM by diego.medrano

    VIZ Display on Mobile Device - not showing graph/tables

    Garry Smith

      Android Mobile device worked with prior versions 9.0 and 9.1 with Public Tableau I was able to embed the viz.

      However, now with version 10 and public tableau the viz shows only the Title and Caption but no graphs/tables.

      I there a setting for mobile on worksheet viz?

      The older javascript that works was simple:


      <script type='text/javascript' src='https://public.tableau.com/javascripts/api/viz_v1.js'></script>


      Now version 10 the embedded javascript appears to be using width and height from developer screen:



      <script type='text/javascript'>

      var divElement = document.getElementById('viz1484091373515');

      var vizElement = divElement.getElementsByTagName('object')[0];       


      var scriptElement = document.createElement('script');      

      scriptElement.src = 'https://public.tableau.com/javascripts/api/viz_v1.js';     

      vizElement.parentNode.insertBefore(scriptElement, vizElement);                </script>




      Any suggestions?

      Can I set the width and height  "vizElement.style.width='1004px';vizElement.style.height='895px';  " for auto sizing?


      versus Tableau Auto Size :vizElement.style.width='100%';vizElement.style.height=(divElement.offsetWidth*0.75)+'px';