This content has been marked as final.
Show 1 reply
-
1. Re: Extract png / base64 image of dashboard from JavaScript API
Santiago SanchezNov 5, 2019 12:02 AM (in response to Lindsey Simon)
Hi Lindsey,
Have you explored using the REST API? The Query View Image method would allow you to obtain an image of a dashboard: Reference-Tableau Server REST API - Tableau. You'll still need credentials to user the REST API, but these are specified on your code upon sign in so you shouldn't run into issues accessing and iframe (since there's none). The way I've seen this used is to display this as a preview, and once clicked on it you go into the live view of the dashboard which can be rendered via the JavaScript API. Here's an example of this: https://www.artplusdata.com/portfolio
Hope this helps!
Santiago