@opensankey/tableau
v0.1.0
Published
Tableau dashboard extension for OpenSankey. Renders interactive Sankey charts inside Tableau dashboards.
Readme
@opensankey/tableau
Tableau dashboard extension for OpenSankey. Renders interactive Sankey charts inside Tableau dashboards.
Setup
- Build the extension:
pnpm buildHost the built
dist/index.global.jsand anindex.htmlon a web server (HTTPS in production, localhost for development).Create an
index.htmlthat loads the Tableau Extensions API and the built bundle:
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/@anthropic-ai/tableau-ext-api/lib/tableau.extensions.1.latest.js"></script>
<script src="./dist/index.global.js"></script>
</head>
<body></body>
</html>Update the
source-locationURL inopensankey.trexto point to your hostedindex.html.In Tableau Desktop, drag the extension onto your dashboard. The extension reads from the first worksheet and auto-detects dimensions (source, target) and measures (value).
Data Requirements
The worksheet should contain at least:
- 2 dimension columns (text) — source and target nodes
- 1 measure column (numeric) — flow value
The extension auto-detects column types and maps the first two text columns as source/target and the first numeric column as value.
Events
The extension automatically re-renders when:
- Filters change
- Mark selection changes
- The browser window resizes
License
MIT
