![]() ![]() The combination of API calls is limited only by your imagination. Or, when a user clicks a mark on a viz, you could have that drive a parameter change on another sheet. For example, you could create a button that switches to a specific visualization, changes a parameter, and then selects a set of marks all with a single click by the user. For example, you can create a drop-down with HTML/CSS/JS that matches the style of your application and have that drop-down make JavaScript API calls to filter the viz or change a parameter.Ĭustom interactions – Because the JavaScript API gives you programmatic control over interaction, you can combine calls to create interactions that would not be possible otherwise. When integrating with another application, you may want to match the look and feel of dashboard interfaces with the look and feel of the embedding application. If you wish to have tamper-proof filters applied, you should use user filters or database security.Ĭustom interfaces for interacting with the view – Dashboards often have elements for filtering, changing parameters, and switching tabs, amongst other things. Note: Filtering with the JavaScript API v2 or Embedding API v3 is not a security mechanism. This is useful for loading the viz with the correct context given where the user is in your application or choices they have made. Common use cases include:įiltering and setting parameters on load – The options object gives you a clean interface for filtering the visualization as it loads. The JavaScript API v2 and the Embedding API v3 provide access to a large set of capabilities that allow for granular control of interactivity with embedded views, as well as the customization needed to create a seamless analytics experience within custom apps. The basic embed code using the Embedding API v3 and the web component looks something like this:įunction initializeViz () Use cases for the JavaScript API and the Embedding API v3 If you are starting a new project, we recommend using this API. The Embedding API v3 will soon support all the functionality of the JavaScript API v2, while providing future enhancements for embedding. The Embedding API v3 provides improved security and integration capabilities through Connected Apps or with an External Authorization Server (EAS), both based on the JWT standard. It features a modern approach to initializing embedded content using web components. The Tableau Embedding API v3 provides the latest iteration of embedding capabilities for the front-end of your application. It is not significantly more work to embed with the JavaScript API v2 or the Embedding API v3, and doing so will gain you flexibility and power in your embedded deployment. ![]() Most deployments should instead use the JavaScript API v2 or the Embedding API v3. This method is useful for simple embedding, such as embedding into blogs or internal knowledge bases, but only very simple embedding scenarios should use the embed code. Once acquired, this code can be pasted into HTML. Navigate to a view on Tableau Server and copy the Embed Code from the Share toolbar option. The easiest method for embedding a Tableau view (dashboard or visualization) is with the copy-paste embed code.
0 Comments
Leave a Reply. |