Last active
May 12, 2017 15:21
-
-
Save skylarking85/211017856bbdf3f3e077ec3bab310486 to your computer and use it in GitHub Desktop.
Tableau Publicで作成したVizを任意のページに呼び出すjs API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>tableau js API test</title> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> | |
<script src="//online.tableau.com/javascripts/api/tableau-2.0.0.min.js"></script> | |
<script type="text/javascript"> | |
var viz; | |
var sheet; | |
var current_sheet; | |
function initViz() { | |
var placeholderDiv = $("#tableau-root"); | |
var url = 'https://public.tableau.com/views/pokemon_28/dashboard'; | |
options = { | |
width: "1400px", | |
height: "600px", | |
hideTabs: true, | |
hideToolbar: true | |
}; | |
viz = new tableau.Viz(placeholderDiv, url, options); | |
} | |
</script> | |
</head> | |
<body onload="initViz();"> | |
<div id="tableau-root"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment