New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tableau-api-js

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tableau-api-js

A version of the JS API for Tableau wrapped as an NPM module.

latest
Source
npmnpm
Version
2.9.1
Version published
Weekly downloads
1.7K
-4.15%
Maintainers
0
Weekly downloads
 
Created
Source

Tableau API JS

A version of the JS API for Tableau wrapped as an NPM module.

Node.js (Install)

Requirements:

  • Node.js
  • npm (Node.js package manager)
npm install tableau-api-js

Usage

To use this package:

app.component.ts:

  import { Component, OnInit } from '@angular/core';
  import * as Tableau from 'tableau-api-js';

  @Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.scss']
  })
  export class AppComponent implements OnInit {
    constructor() {}

    public initViz(): void {
      const containerDiv = document.getElementById('vizContainer');
      const vizUrl = 'https://public.tableau.com/views/WorldIndicators/GDPpercapita';
      const options = {
        width: containerDiv.offsetWidth,
        height: 700
      };

      const viz = new Tableau.Viz(containerDiv, vizUrl, options);
    }

    public ngOnInit(): void {
      this.initViz();
    }
  }

app.component.html:

<div id="vizContainer"></div>

This will provide you with the most up-to-date functionality in the API.

Using a JS library in a TS project

To use the library (without type declarations) in a TypeScript project follow the steps in the following post

More details in the API documentation

Keywords

tableau

FAQs

Package last updated on 02 Sep 2024

Did you know?

Socket

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.

Install

Related posts