A Gitbook plugin for embedding Tableau visualizations using the Tableau Javascript API.
Modify your book.json by adding tableau
to plugins
{
"plugins": ["tableau"]
}
{% tableau "https://public.tableau.com/views/Visual/Principles" %}
{"hideTabs":true,
"hideToolbar":true,
"width": "100%",
"height": "100%",
"onFirstInteractive": "function(){console.log('Run this code when the viz has finished loading.');}"}
{% endtableau %}
See the full list of available options
{"hideTabs":true,
"hideToolbar":true,
"width": "100%",
"height": "100%"}
- Make sure the body of the block is valid JSON
- Make the defaults configurable
- Allow passing an account token to the Tableau api