# tableau-add-in

> Narratives for Tableau Add In

Latest version **0.0.16** (published 2018-01-10) · 0 weekly downloads

## Install

```sh
npm install tableau-add-in
pnpm add tableau-add-in
yarn add tableau-add-in
bun add tableau-add-in
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.16 |
| Published | 2018-01-10 |
| First published | 2017-08-30 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 32 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Author | Narrative Science |
| Maintainers | narrativescience |

## Links

- npm: https://www.npmjs.com/package/tableau-add-in
- npm.io page: https://npm.io/package/tableau-add-in

## Dependencies (32)

- [react](https://npm.io/package/react.md) ^15.2.1
- [redux](https://npm.io/package/redux.md) ^3.5.2
- [jquery](https://npm.io/package/jquery.md) ^2.2.3
- [lodash](https://npm.io/package/lodash.md) ^4.13.1
- [moment](https://npm.io/package/moment.md) ^2.12.0
- [bluebird](https://npm.io/package/bluebird.md) ^2.9.9
- [reselect](https://npm.io/package/reselect.md) ^2.5.3
- [node-uuid](https://npm.io/package/node-uuid.md) ^1.4.7
- [rc-slider](https://npm.io/package/rc-slider.md) ^4.0.0
- [react-dnd](https://npm.io/package/react-dnd.md) ^2.1.4
- [react-dom](https://npm.io/package/react-dom.md) ^15.2.1
- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [prop-types](https://npm.io/package/prop-types.md) ^15.5.9
- [common-tags](https://npm.io/package/common-tags.md) 0.0.3
- [file-loader](https://npm.io/package/file-loader.md) ^0.9.0
- [react-redux](https://npm.io/package/react-redux.md) ^4.4.5
- [redux-thunk](https://npm.io/package/redux-thunk.md) ^1.0.3
- [font-awesome](https://npm.io/package/font-awesome.md) ^4.6.1
- [redux-logger](https://npm.io/package/redux-logger.md) ^2.7.4
- [es6-promisify](https://npm.io/package/es6-promisify.md) ^4.1.0
- [redux-actions](https://npm.io/package/redux-actions.md) ^0.9.1
- [redux-storage](https://npm.io/package/redux-storage.md) ^4.0.1
- [browserify-shim](https://npm.io/package/browserify-shim.md) ^3.8.14
- [deep-freeze-node](https://npm.io/package/deep-freeze-node.md) ^1.1.2
- [mixpanel-browser](https://npm.io/package/mixpanel-browser.md) ^2.7.2
- [react-hot-loader](https://npm.io/package/react-hot-loader.md) ^3.0.0-beta.2
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^4.1.1
- [react-router-redux](https://npm.io/package/react-router-redux.md) next
- [react-addons-update](https://npm.io/package/react-addons-update.md) ^15.2.1
- [react-dnd-touch-backend](https://npm.io/package/react-dnd-touch-backend.md) ^0.3.12
- [react-addons-css-transition-group](https://npm.io/package/react-addons-css-transition-group.md) ^15.2.1
- [@narrativescience/narratives-tableau-converters](https://npm.io/package/@narrativescience/narratives-tableau-converters.md) ^1

## Recent versions

- 0.0.16 (latest) — 2018-01-10
- 0.0.15 — 2018-01-09
- 0.0.14 — 2017-12-01
- 0.0.13 — 2017-12-01
- 0.0.12 — 2017-12-01
- 0.0.11 — 2017-09-22
- 0.0.10 — 2017-09-21
- 0.0.9 — 2017-09-06
- 0.0.8 — 2017-09-05
- 0.0.7 — 2017-09-05
- 0.0.6 — 2017-09-05
- 0.0.5 — 2017-08-30
- 0.0.4 — 2017-08-30
- 0.0.3 — 2017-08-30
- 0.0.2 — 2017-08-30

## README

# Narratives for Tableau Add In

### Setup
1. Install dependencies and build resources.
  ```
  gulp install --app tableauAddIn
  gulp build --app tableauAddIn
  ```
1. Copy the `NarrativesForTableau.trex` file from `./Extensions` to `~/Documents/My
Tableau Repository (Beta)/Extensions` on your Windows machine so it is available
to Tableau.
1. Run the following command in the windows command prompt: `notepad c:\windows\system32\drivers\etc\hosts`
and add the line `10.0.2.2 tableau-add-in-landing-page.viz.dev` to the bottom of
the file.
1. Modify the `landing-page/src/index.coffee` file to make the landing page use
regular http in local dev, since insecure SSL (i.e., serving from localhost)
breaks the Tableau web driver: `if config.ssl -> if false`
    * Make sure not to stage these changes.
1. Run `npm run servers` from `ns_products/viz`.
1. Open a dashboard in the Tableau desktop application and drag the Narratives
for Tableau extension onto the dashboard.

### Differences between this and the Tableau chrome extension.
* The Add-in API is available as global variable named `tableau`. It no longer requires a pointer
to the part of the HTML document which contains the viz to initialize. [See the full API reference](https://github.com/tableau/ProjectFrelard/wiki/Tableau-AddIn-JavaScript-API-Reference).
* Something about the drag and drop [HTML5 backend library](https://github.com/react-dnd/react-dnd-html5-backend)
breaks the column selection modal in the version of Chromium that Tableau uses as a driver, so the add-in uses
the [Yahoo drag and drop library](https://github.com/yahoo/react-dnd-touch-backend),
which is intended for mobile use but supports basic mouse events (all we need).
* The Add-in API is used directly in `main.js` and `reducers/worksheets.js`. `actions.js` was also
modified to no longer call `worksheet.getDataSourcesAsync()`, as it is not supported by the first version
of the Add-in API.

---
_Source: https://npm.io/package/tableau-add-in · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
