This repository contains samples for the Tableau Embedding API V3. Official developer documentation can be found here.
These are created and maintained by Tableau.
| Demo | Source Code | Description |
|---|---|---|
| Basic Embed via Web Component | basicEmbeddingWebComponent.html | Embed a visualization using <tableau-viz> web component. For more information about using the web component, see Basic Embedding. |
| Basic Embed via JS Initialization | basicEmbeddingJSInitialization.html | Embed a visualization using TableauViz object. For more information about using the TableauViz object, see Basic Embedding. |
| Dynamic Load | dynamicLoad.html | Dynamically load and remove visualizations. Click the Previous and Next buttons to display other visualizations in a predefined list. |
| Custom Context Menu | customContextMenu.html | Rename and add items in a context menu. For more information, see Add Custom Context Menus. |
| Filter | filter.html | Apply a filter to a visualization using controls on the page. For more information about using filters, see Filter the View. |
| Get Data | getData.html | Get the underlying data for the currently displayed viz. |
| Get Logical Data | getDataTableReader.html | Get the logical data for the currently displayed viz using the DataTableReader. |
| Resize | resize.html | Resize a visualization to a size that you specify. |
| Respond to Events | respondToEvents.html | Display information about marks as you select them. For more information about responding to events, see Add Event Listeners. |
| Select Marks | selectMarks.html | Select a set of marks in a visualization. |