Spreadsheets store the numbers. Total Sankey shows where they go. No account. No install. Your data stays in the tab.
- Loading Data
- Data Grid
- Interactive Chart
- Aggregate Selection
- Filters & Controls
- Settings
- Theme
- Exporting
- Sharing
- Versions
- Embedding
- AI Assistant
- Keyboard Shortcuts
- Data Format
- Tips & Tricks
Loading Data
Click Load Data in the header for these options:
- Import File — Select a
.csv, .tsv, or .txt file. Delimiter is auto-detected.
- Import .sankey File — Restore a previously saved chart with all settings, colors, and titles.
- Paste Data — Opens a paste dialog. Paste tab-separated rows (e.g. from Excel) and click Import.
- Sample Data — Load a built-in example dataset to see the tool in action.
You can also drag & drop a CSV/TSV file directly onto the data grid.
The ✕ button appears in the header when data is loaded — click it to clear all data and reset.
Column Mapping
When importing a file with 5 or more columns, a column mapping dialog appears. It auto-guesses which columns are Source, Target, Value, and Filter based on header names. You can adjust the dropdowns before confirming.
Validation Feedback
After import, a notification shows how many rows were imported. If any rows had invalid data (missing source/target or non-numeric values), it reports how many were skipped.
Data Grid
The right panel is a full spreadsheet with four columns:
| Column | Required | Description |
| Source | Yes | The origin node (e.g. "North America") |
| Target | Yes | The destination node (e.g. "Engineering") |
| Value | Yes | Numeric flow value between source and target |
| Filter | No | Optional category for filtering (e.g. year) |
- Click any cell to edit. Right-click for context menu (insert/delete rows, copy, paste, undo).
- New rows auto-appear as you type at the bottom.
- Changes reflect in the chart in real time.
- Drag the vertical divider to resize chart/grid widths.
- Data is auto-saved to local storage and restored on return.
- Search — Use the search bar above the grid to find specific data. Matching cells are highlighted as you type.
Interactive Chart
Hover
- Node hover — Highlights the full upstream and downstream path. Tooltip shows name and total.
- Flow hover — Highlights the connection. Tooltip shows source, target, and value.
Click to Isolate
Click a node to isolate it — only connected flows remain visible, and the grid filters to matching rows. A floating indicator at the top-left shows which node is isolated. Click the indicator, click again, or click the background to clear.
Drag to Reorder
Click and drag any node vertically to reposition it within its column. Flows redraw in real time.
Zoom & Pan
- Scroll wheel / pinch — Zoom in/out (0.5x to 5x)
- Drag background — Pan the view
- Double-click — Reset zoom to fit
Flows use color gradients blending from source to target node color for easy path tracing.
Aggregate Selection
Hold Ctrl (Windows/Linux) or Cmd (Mac) and click nodes to enter aggregate mode:
Single Node Detail
Ctrl/Cmd+click one node to see a popup with total value, percentage of grand total, inflows (per source), and outflows (per target).
Multi-Node Summary
Ctrl/Cmd+click additional nodes to see combined totals with a per-node breakdown. Selected nodes get a white border highlight.
Select All
Press Ctrl+A / Cmd+A to select every node and see the grand total.
Clear by clicking ✕, pressing Esc, or clicking the background.
Filters & Controls
Several floating controls appear on the chart canvas when data is loaded:
Filter Bar
If your data has a fourth column (Filter), a floating pill bar appears at the top-left of the chart:
- 5 or fewer values — Clickable tab buttons. Click one to filter; click "All" to reset.
- More than 5 — A dropdown select menu.
Flow Threshold
The slider at the top-right lets you hide small flows below a percentage threshold. Drag it to filter out noise and focus on the largest connections.
Node Sort
The Sort button at the top-right toggles between three modes: Default (d3-sankey's built-in ordering), Ascending (smallest to largest), and Descending (largest to smallest).
Settings
Click the gear icon to open the settings panel:
- Chart Title — Custom title for exports.
- Hide Step Labels — Toggle the column headers on/off.
- Show Values on Flows — Display value and percentage on each flow line.
- Custom Step Titles — Rename column headers (e.g. "Region", "Department").
- Node Colors — Color picker for each root node. Non-root nodes get unique palette colors automatically.
Dark / Light Theme
Click the moon/sun icon floating at the top-right of the chart canvas to toggle. Chart, grid, and UI adapt. Your choice is reflected in exports.
Exporting
Click Download for five export formats:
| Format | Description |
| Excel (.xlsx) | Two sheets: "Sankey Chart" with embedded PNG and "Data" with color-coded rows + totals. |
| PNG | High-resolution (2600x1600px) image, respects theme. |
| SVG | Scalable vector graphic — infinite zoom, no quality loss. |
| CSV | Plain text comma-separated file of your source/target/value data. |
| .sankey | JSON file with data + all settings. Re-import later or share with colleagues. |
Sharing
Click Share to generate a shareable URL. The dataset and settings are compressed into the URL — anyone with the link sees your exact chart, no account needed.
Large datasets that exceed the URL limit will prompt you to download a .sankey file instead.
Versions
Click the Versions button in the header to save and restore snapshots of your chart:
- Save Version — Captures your current data, settings, colors, and titles. Give it a name for easy identification.
- Restore — Click any saved version to restore that exact chart state.
- Delete — Click the ✕ next to a version to remove it.
- Clear All — Remove all saved versions at once.
Up to 20 versions are stored in your browser's local storage. Versions include the full chart state — data, custom colors, titles, filter selection, and settings.
Embedding
Click Embed for two options:
- iframe — Copy the embed code and paste into any website. The chart is fully interactive but hides controls for a clean look.
- Standalone HTML — Downloads a self-contained file with all dependencies inlined. Works completely offline.
AI Assistant
Click the robot icon (bottom-right of chart) to open the AI assistant. This runs a small language model entirely in your browser using WebGPU — no data is sent to any server. The button only appears when data is loaded.
Getting Started
- Requires Chrome or Edge (WebGPU support).
- Choose a model size. SmolLM2 360M (376 MB) is fastest; larger models give better answers.
- Click Load Model. The model downloads once and is cached by your browser.
Data Context Setup
On first use, the AI asks a few quick questions about your data (what values represent, units, chart description, time period). This prevents the AI from guessing or assuming units. Answers are saved and can be changed anytime via the ⟳ Setup button in the panel header.
Features
- Auto-insights — After setup, the AI generates key findings about your data.
- Ask questions — Type questions like "Which region has the most flow?" or "Compare X and Y".
- Quick actions — Click preset buttons for common analyses (top flows, patterns, summary).
- Data-aware — The AI sees your current nodes, flows, totals, and percentages. It updates when you change filters.
The AI runs locally. Your data never leaves your browser. Close the panel anytime with ✕.
Keyboard Shortcuts
| Shortcut | Action |
| Ctrl/Cmd + Click | Toggle node selection (aggregate mode) |
| Ctrl/Cmd + A | Select all nodes |
| Escape | Clear selection |
| Double-click | Reset zoom |
| Scroll wheel | Zoom in/out |
| Drag background | Pan the chart |
| Drag node | Reorder vertically |
Basic (3 columns)
Source Target Value
| North America | Engineering | 150 |
| North America | Sales | 200 |
| Europe | Engineering | 100 |
With Filter (4 columns)
Add a 4th column to enable filtering:
| North America | Engineering | 150 | 2024 |
| North America | Sales | 200 | 2025 |
Multi-Level Flows
When a node appears as both a target and a source, the tool auto-creates multi-column charts:
| Region A | Dept X | 100 |
| Dept X | Team Alpha | 60 |
| Dept X | Team Beta | 40 |
This produces: Regions → Departments → Teams
Supported delimiters: tab, comma, semicolon (auto-detected).
Tips & Tricks
Drag nodes to reorder and reduce crossing lines.
Click a node to isolate it, then examine the filtered grid data.
Ctrl/Cmd+click nodes to compare totals side by side.
Use Settings to add a title and show flow values before exporting to PNG or Excel.
Share via URL for small datasets. For larger ones, send the .sankey file.
Download the Standalone HTML embed for a chart that works offline.
Paste directly from Excel or Google Sheets — tab-separated format is handled natively.
Use the flow threshold slider to hide small flows and focus on the biggest connections.
Sort nodes ascending or descending to quickly spot the largest or smallest flows.
Save versions before making big changes — you can always restore a previous state.
Use the grid search bar to quickly find specific nodes or values in large datasets.