Do not use this project. To get started with Tableau embedding, see https://github.com/tableau/embedding-playbook For sample code that demonstrates the v3 embedding API, see https://github.com/tableau/embedding-api-v3-samples For a guide to migrating your code to the v3 embedding API, see https://github.com/tableau/embedding-api-v3-guide
This repository contains samples for the Tableau JavaScript API. You will also find companion content here for the JS API video series. Official developer docs for the JS API can be found here.
- Clone this repository
- Try the samples
- Use 'Issues' to note any bugs or to request new samples
- Let us know if you have samples of your own you'd like to share
- Check out the Tableau Developer Portal at http://developers.tableau.com for a tutorial, the official docs, and the community forum
These are created and maintained by Tableau.
Demo | Source Code | Description |
---|---|---|
Basic Embed | basicEmbed.html | Embed a visualization in a div element. |
Dynamic Load | dynamicLoad.html | Dynamically load and remove visualizations. Click the Previous and Next buttons to display other visualizations in a predefined list. |
Export to PDF | exportToPDF.html | Export the current visualization view to a PDF file. |
Filter | filter.html | Apply a filter to a visualization using controls on the page. |
Get Data | getDataBasic.html | Get the underlying data for the currently displayed viz. |
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. |
Select Marks | selectMarks.html | Select a set of marks in a visualization. |
The videos are hosted on YouTube: