tableau.viz api code example
Example: tableau js api
function initViz() {
var containerDiv = document.getElementById("vizContainer"),
url = "https://YOUR-SERVER/views/YOUR-VISUALIZATION";
var viz = new tableau.Viz(containerDiv, url);
}