Basic Embed

Embed a visualization in a div element.


<!DOCTYPE html>

    <title>Basic Embed</title>

    <script type="text/javascript"
    <script type="text/javascript">
        function initViz() {
            var containerDiv = document.getElementById("vizContainer"),
                url = "",
                options = {
                    hideTabs: true,
                    onFirstInteractive: function () {
                        console.log("Run this code when the viz has finished loading.");

            var viz = new tableau.Viz(containerDiv, url, options);
            // Create a viz object and embed it in the container div.

<body onload="initViz();">
    <div id="vizContainer" style="width:800px; height:700px;"></div>


Thanks for your feedback!Your feedback has been successfully submitted. Thank you!