cellstore-tableau

Tableau web data connector integration for the cellstore.

Usage no npm install needed!

<script type="module">
  import cellstoreTableau from 'https://cdn.skypack.dev/cellstore-tableau';
</script>

README

cellstore-tableau

Tableau web data connector integration for the cellstore.

npm version CircleCI

The tableau module can be used in different ways.

Init function

A utility function is created as a tableauInit variable. It takes two arguments

  • factTableAccessor an object representing a fact table or a promise returning such an object.
  • autosubmit to define if the tableau data should be submitted on init or if it will be submitted manually later. Default is true.

Utility functions

When used as a commonjs module, the following functions are also exposed:

  • isTableau a function that returns true if the user agent of the browser corresponds to tableau.
  • factTableToTableau a function to convert a fact table to the tableau format.
  • init the initialisation function.

Example of usage:


tableau.connectionData = window.location.search;
tableau.connectionName = "my connection";
var tableauData = {...};
initTableau(tableauData); // globaly defined in the module.