
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
@tableau/embedding-api
Advanced tools
The Tableau Embedding API enables you to integrate Tableau visualizations into your own web applications. Add custom controls, and take advantage of modern, secure methods of authentication to interact with the visualization from your web application.
The Embedding API library is available in multiple versions, and each version of the library corresponds to a specific version of Tableau. For compatibility, you should use the version of the library that matches the version of Tableau you are using. Using the table found at Versions of the Tableau Embedding API, determine the version of the NPM package to install. For example, if your embedded vizzes are hosted on Tableau version 2023.2, you should install version 3.6.x of @tableau/embedding-api.
Install the version of Tableau Embedding API library that is compatible with the version of
Tableau . The following command installs the @tableau/embedding-api
in the node_modules
folder of the current directory.
npm install @tableau/embedding-api @[version-number]
Import the module into your source files. In your JavaScript or TypeScript code, import the TableauViz object from the Embedding API v3 library. You can then create a new instance of the object and configure the object with the path to the view and other properties and methods supported by the object (See Configure Embedding Objects and Components). To simplify your code and improve load times, import just the classes you need, for example TableauViz to create the JavaScript object and TableauEventType to set an event listener. To import TableauViz and TableauEventType, you would use the following:
import { TableauViz, TableauEventType } from '@tableau/embedding-api';
Here is an example to initialize TableauViz
:
<div id="tableauViz"></div>
const viz = new TableauViz();
viz.src = 'https://my-server/views/my-workbook/my-view';
viz.toolbar = 'hidden';
document.getElementById('tableauViz').appendChild(viz);
It’s important to note that creating the object (new TableauViz()
) does not render the view. To
do that, you must add it to the DOM that is, add it to document using appendChild()
, as in the
example above.
FAQs
Implementation for Tableau Embedding Api
The npm package @tableau/embedding-api receives a total of 16,484 weekly downloads. As such, @tableau/embedding-api popularity was classified as popular.
We found that @tableau/embedding-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.