Specialist charts in the classic Workbook Editor
This page covers the specialist chart types of the classic Workbook Editor: waterfalls, Sankey diagrams, treemaps, word clouds and KPI trees. To build charts in a Data App instead, see Choose a chart.
To add any of them, open Visuals in the editor’s left menu and select the chart, as described in Add an object to a sheet. Most are in the Advanced Visualizations group; KPI Tree is in Numbers. You set each chart up on its own tab in the properties panel, usually under Data and Style. Settings that charts share are covered once: measure settings, bar styling and reference lines on Charts, Top N and alternative fields on Chart options, and advanced calculations on Chart calculations.
| Chart | Shows | Data |
|---|---|---|
| Cumulative waterfall | How each value of a dimension adds to a running total | One dimension, one measure |
| Multi-measure waterfall | How a sequence of measures builds a total | 1 to 100 measures without a dimension |
| Sankey | How a measure flows between the values of dimensions | Two or more dimensions, a measure |
| Treemap | Parts of a whole as nested rectangles | One or more dimensions, one measure |
| Word cloud | Text values sized by a measure | One dimension, one measure |
| Tree chart | A KPI broken into its drivers, or a row of KPI cards | Measures only, or up to 10 dimensions and a measure |
Cumulative waterfall
Section titled “Cumulative waterfall”A cumulative waterfall shows how each value of one dimension adds to or takes away from a running total, so you can see which categories make up the result. It is a bar chart drawn as a waterfall.
- Add Cumulative Waterfall from Advanced Visualizations. To turn an existing bar chart into one instead, give it one dimension and one measure, then on its Style tab, under Chart, select the Waterfall type instead of Bars. The Waterfall type is offered only while the chart has one dimension and one measure.
- On the Data tab, add one dimension and one measure.
- On the Style tab, under Chart, set the waterfall options:
- Bar bridge draws a line from the end of each bar to the start of the next. It is on by default; the color beside it sets the line color.
- Show aggregate adds a final bar with the cumulative result of all the others. It is on by default, and its Label is Total until you change it. The option is not shown when the dimension is a number or a date and the dimension axis is continuous.


The rest of the Style tab (orientation, bar padding and radius, borders and color) works as it does for other bar charts, and so do the measure settings, Limiting (Top N with Show others) and reference lines on the Data tab. See Bar chart and Reference lines. Trendlines are not offered on a waterfall.
Waterfall axes
Section titled “Waterfall axes”The Axis tab has a Dimension and a Measure section. Both have checkboxes for the axis Title, Ticks, Labels and Line, and these settings:
- Show axis tooltips shows a dashed guide line with the axis value where the pointer is.
- Default axis name and Title size set the axis title, while Title is ticked.
- Gridlines draws gridlines from this axis, with their own color and dash style.
- Axis bands, on the measure axis, and Dimension axis bands shade ranges of the axis, such as the limits of a control chart. Each band has a start value, an end value, a color and a label.
The Dimension section also has:
- Enable continuous axis, for a number or date dimension, draws the axis as a continuous scale.
- Axis labels: Auto-align, or Show last to always show the last label.
- Label length, while Labels is ticked: Auto fit labels, Show all, or Limit characters.
- Chart scrolling limits how many bars are visible at once and adds a scroll bar. Under Limit datapoints by, choose Minimum size (a bar width in pixels) or Number of data points. It is offered only while the dimension axis is not continuous.
The Measure section also has Range (Auto, Min/Max, Only Max or Only Min), Start at 0 and Logarithmic scale.


Multi-measure waterfall
Section titled “Multi-measure waterfall”A multi-measure waterfall adds up a sequence of measures, in the order you list them, so you can see which ones contribute most to the result. It suits a profit and loss statement or actuals against a target. To break one measure down by a dimension instead, use a cumulative waterfall.
- Add Waterfall from Advanced Visualizations.
- On the Data tab, leave Dimensions empty and add between 1 and 100 measures. Each measure is a bar, in the order of the list.
- Open a measure to set its own options:
- Show data label shows the bar’s value.
- Hide bar if zero or null leaves the bar out when the measure has no value or is zero.
- Sub-total adds a bar after this measure with the running total so far. Its Label is Sub-Total if you leave it empty.
- Custom colors sets this measure’s Positive, Negative and Sub-total colors, overriding the chart’s colors.
- Turn on Show total, below the measures, to add a final bar with the running total of all measures. Its Label is Total if you leave it empty, and it uses the number format of the last measure.


With one dimension, the Waterfall object compares two totals instead. The measures section becomes Measures (start, end) and takes two measures: the start total first, then the end total. Each value of the dimension is a bar showing its end value minus its start value, between a start bar and an end bar. Sub-total and Show total are not offered in this mode, and a Sorting section orders the category bars while the start and end bars stay at the ends.
On the Style tab:
| Setting | What it does |
|---|---|
| Orientation | Vertical or Horizontal bars |
| Bar padding | The space between bars |
| Bar radius | How rounded the bar corners are; Round all edges rounds the base corners too |
| Transparent bars | Fades each bar from its full color to 65% opacity |
| Show lines | Draws connecting lines between the bars |
| Border bars | Adds a border, with Border color and Border width |
| Color | The Positive, Negative and Sub-total colors for all bars |

Sankey
Section titled “Sankey”A Sankey diagram shows how a measure flows between the values of two or more dimensions, such as customers from one stage to the next. Each dimension is a column of nodes, and the width of each link shows the size of the flow.

- Add Sankey Diagram from Advanced Visualizations.
- On the Data tab, add at least two dimensions and one measure. The dimensions become columns in the order you add them, and the same dimension cannot be used twice.
- To color one dimension’s nodes, open it and set Coloring to Single (one color) or Categorical (one color per value, from a Palette, with optional Persistent colors). This applies only while Style → Color is Per dimension.


Only rows with a positive measure value are drawn; zero, negative and null values are left out. By default the chart reads up to 2,000 rows. Each combination of dimension values is a row, so with several dimensions some flows can fall outside that limit.
Sankey style settings
Section titled “Sankey style settings”
| Section | Setting | What it does |
|---|---|---|
| Layout | Show null nodes | Shows null values as nodes. Off by default, so flows skip them |
| Node margin | The vertical space between nodes in a column | |
| Columns | Show header labels | Shows the dimension names above the columns. On by default |
| Width | The width of the nodes; wide nodes can hold their labels | |
| Margin | The space between nodes and links | |
| Node labels | Show | Turns labels on; choose Dimension, Flow (the measure value) or Both, which is the default |
| Placement priority | Above, Inside and Beside: drag to set the order to try, and switch off any you do not want. One stays on | |
| Backdrop | Adds a Backdrop color behind the labels | |
| Color | Type | Single colors everything the same; Per dimension, the default, uses each dimension’s Coloring |
| Conditional coloring | Colors nodes that meet a condition; these colors take priority | |
| Node color | Override | Gives every node one Color |
| Link color | Opacity | How opaque the links are |
| Override | Gives every link one Color | |
| Type | Transition from source to target dimension (the default), Inherit from source dimension or Inherit from target dimension |




Treemap
Section titled “Treemap”A treemap shows a measure across a hierarchy as nested rectangles. Each dimension adds a level, and the size of each rectangle is its share of the measure, such as revenue by country and then by occupation.
-
Add Treemap from Advanced Visualizations.
-
On the Data tab, add one measure and one or more dimensions. The first dimension is the top level of the hierarchy.

-
Optionally, use Show Top N dimension values under Limiting to keep the top values of the last dimension within each value of the ones before it (the default Dimension to use, All) and group the rest with Show others. See Show only the top or bottom N.
Only rows with a positive measure value are drawn.


On the Style tab:
- Layout: Cell padding and Cell radius set the space between cells and how rounded they are. Order by sorts cells by size: Desc (the default) puts the largest first, Asc the smallest, and None keeps the data order.
- Labels: Show leaf labels labels the cells of the last level. Display chooses Dimension, Total (the measure value) or Both, and Font size strategy is Static (one size, set in Font size) or Dynamic (sized to the cell). Show header labels labels the levels above, for up to Max levels levels; it needs two or more dimensions.
- Branch color colors the levels above the cells. It needs two or more dimensions.
- Leaf color colors the cells: Single, Categorical (the default) or Gradient, with conditional coloring. Its Legend can sit at the Top, Right, Bottom or Left.




Word cloud
Section titled “Word cloud”A word cloud shows the values of one text dimension, each sized by a measure, so the largest values stand out. It suits text such as reviews, search terms and survey answers. It shows at most 200 words, those with the largest measure results.

- Add Word Cloud from Advanced Visualizations.
- On the Data tab, add one dimension for the words and one measure for their size. Each value of the dimension is shown as one word, so long text must be split first. See Prepare text for a word cloud.

On the Style tab, under General:
- Font family and Font style (bold, italic) set the typeface.
- Scaling maps a measure value to a word size: Linear (the default), Sqrt, Logarithmic or Squared. Square root and logarithmic scaling narrow the gap between large and small values; squared widens it.
- Max chars is the longest a word can be, from 1 to 100 characters, before it is shortened with an ellipsis. The default is 40. In a narrow object, words are shortened sooner, to fit.
- Word layout seed fixes the arrangement of the words. Select the refresh button or type a number from 1 to 1000 to try another arrangement.
Under Color, choose Single, Categorical (one color per word) or Gradient (along a Palette from the lowest value to the highest). Conditional coloring rules take priority.

Prepare text for a word cloud
Section titled “Prepare text for a word cloud”These Snowflake SQL queries split a long text column into cleaned single words that a word cloud
can use. Run one in Snowflake and add the result to your data model as a table or view. Each
query splits the text on whitespace, keeps only the letters A to Z in lower case (don't becomes
dont, and accented letters are removed, so adjust the pattern for other languages), and counts
each word.
Replace the placeholders: MY_DB.MY_SCHEMA.COMMENTS is your table, MESSAGE the text column and
COMMENT_ID the column that identifies each row.
Use word counts per row unless you only need a static overview: only that shape responds to the other filters on the sheet.
Pre-aggregated word list
Section titled “Pre-aggregated word list”One row per word with its total count, limited to the 300 most frequent words. It is small and fast, but has no key back to the source rows, so keep it unconnected in the data model: other filters cannot narrow it.
A security rule cannot narrow it either, because a rule reaches only its own table and, with global data reduction, the tables joined to it. The list can therefore show words from rows a viewer is not allowed to see. If a rule must apply, use word counts per row, join them to the source table, and turn on Apply as global data reduction with Strict. Then open the word cloud as a restricted viewer and check that it shows only their words.
WITH word_split AS ( -- One row per whitespace-separated word SELECT f.value::STRING AS word FROM MY_DB.MY_SCHEMA.COMMENTS AS c, -- your table LATERAL FLATTEN(INPUT => SPLIT(REGEXP_REPLACE(c.MESSAGE, '\\s+', ' '), ' ')) AS f -- your text column),cleaned_words AS ( -- Keep letters only, in lower case SELECT LOWER(REGEXP_REPLACE(word, '[^a-zA-Z]', '')) AS cleaned_word FROM word_split)SELECT cleaned_word, COUNT(*) AS frequencyFROM cleaned_wordsWHERE LENGTH(cleaned_word) > 0GROUP BY cleaned_wordORDER BY frequency DESCLIMIT 300;
Word counts per row
Section titled “Word counts per row”One row per word per source row. It has many more rows, but keeps the row ID, so you can join it
to the source table and every other filter applies to the word cloud. Use CLEANED_WORD as the
dimension and the sum of FREQUENCY as the measure.
Create it as a view, or as a Snowflake dynamic table. A view reads the source each time, so the
word cloud is always current. A dynamic table refreshes in the background to a target lag, which
can be exceeded, so it can still show words that were edited or removed. It also refreshes with
its owner role, so a row access or masking policy on the source table is applied for that role,
not for the viewer. A view is not a safeguard on its own either: a policy that uses
INVOKER_ROLE is evaluated with the view owner’s role. If the source has such a policy, apply an
equivalent policy to the dynamic table or view, and test as a restricted viewer.
WITH word_split AS ( -- One row per word, keeping the ID of the row it came from SELECT c.COMMENT_ID AS commentid, -- your ID column f.value::STRING AS word FROM MY_DB.MY_SCHEMA.COMMENTS AS c, -- your table LATERAL FLATTEN(INPUT => SPLIT(REGEXP_REPLACE(c.MESSAGE, '\\s+', ' '), ' ')) AS f -- your text column),cleaned_words AS ( SELECT commentid, LOWER(REGEXP_REPLACE(word, '[^a-zA-Z]', '')) AS cleaned_word FROM word_split)SELECT commentid, cleaned_word, COUNT(*) AS frequencyFROM cleaned_wordsWHERE LENGTH(cleaned_word) > 0GROUP BY commentid, cleaned_word;
Remove stopwords
Section titled “Remove stopwords”Stopwords such as and, the and a carry no topic and dominate the cloud if left in.
stopwords.csv lists about 730 of them in
lower case, one per line with no header. A few are hyphenated, such as no-one; the cleaning step
turns those into noone, so remove the hyphens when you load the file.
Load the file into a one-column table, for example MY_DB.MY_SCHEMA.STOPWORDS with a WORD
column, then replace the WHERE clause of either query with:
WHERE LENGTH(cleaned_word) > 0 AND cleaned_word NOT IN (SELECT word FROM MY_DB.MY_SCHEMA.STOPWORDS)To avoid a separate table, list the words inline instead. The file has no contracted forms such as
dont, didnt and im, which the cleaning step produces, and leaves out some common words such
as will and now, so add those yourself:
WHERE LENGTH(cleaned_word) > 0 AND cleaned_word NOT IN ('dont', 'didnt', 'im', 'will', 'now', 'de', 'and', 'the', 'a', 'i' /* , ...the rest of stopwords.csv */)Tree chart
Section titled “Tree chart”The tree chart, added as KPI Tree from Numbers, shows KPI cards in one object. Each card can show a value and its change, so you can follow a headline KPI down to the branch that moved it.

Build it in one of three shapes:
- A tree of measures: several measures and no dimension. You arrange the measures into a hierarchy yourself, for example revenue broken into its drivers.
- A dimensional tree: up to 10 dimensions and one measure. Each dimension adds a level, so one KPI splits by region, then product, then channel. Only the first measure is drawn, so add just one. Turn on Totals → Show totals to add a node for the total.
- A KPI row or grid: either of the above with Disable hierarchies on, which lays the cards out in a set number of rows instead of a tree. With one row, the cards sit side by side; with a dimension, you get one card per value to compare, such as a score per neighbourhood.


Set up a tree chart
Section titled “Set up a tree chart”- On the Data tab, add your measures, or your dimensions and a measure. By default the chart reads up to 100 rows.
- Open a measure to fill the parts of its card. The KPI Change preset adds Difference and Change to the main value, each taking its Source from a measure or a variable. Its Indicator colors a change as good or bad: Default, Inverse for a measure where a fall is good, None, or Custom colors. In a tree of measures, Expanded sets whether that node starts open.
- On the Style tab, under Node layout, choose the Preset: Basic or KPI Change. Set a Custom width, Background color, border and Hover style for the cards.
- Under Node content, set the font family, style, size and color of the Label and Value. Number formats come from each measure’s format setting.
- Under Tree layout, set how the tree is drawn:
- Direction sets where the tree grows from: Top, Bottom, Left or Right.
- Compact mode packs nodes closer together. It is offered for a dimensional tree.
- Force auto fit keeps the whole tree fitted to the object. When it is off, the chart has a button in its top-right corner that fits the tree again.
- Expanded levels sets how many levels of a dimensional tree are open when it loads; the default is 2. Viewers can open and close branches.
- Disable hierarchies switches to the grid layout and shows Rows, or Columns when the direction is left or right.



Interact with a tree chart
Section titled “Interact with a tree chart”- Hovering a dimension node highlights the same value in other objects on the sheet, and hovering that value elsewhere highlights the node.
- With a Hover style set, hovering a node also highlights its path back to the top of the tree.
- When Force auto fit is off, the node you open stays centred as branches expand.
- With the KPI Change preset, a change shows an up or down arrow, and the line to each node takes the good or bad color of that node’s difference, following its Indicator. The line is thicker for the node with the largest difference among its siblings.
Arrange a tree of measures
Section titled “Arrange a tree of measures”In a tree with no dimension and Disable hierarchies off, the chart shows an organise button (a pen) in its top-right corner while you edit. Select it, then drag cards onto each other to build the hierarchy. The button is available once the tree has at least two measures.

Run an action when a node is selected
Section titled “Run an action when a node is selected”A tree chart emits an On node click event when a viewer selects a node. Use it to set a variable, filter other objects or go to another sheet. In the action editor, add the When … emits … do block that takes an object type from the Controls category, choose the tree chart, then On node click. Besides the object’s ID and name, the event passes these values, which you read with the event parameter block:
| Value | Contains |
|---|---|
| Node name | The name shown on the node |
| Node type | dimension for a dimension value, measure for a node in a tree of measures, or total |
| Node value | The dimension value on a dimension node, otherwise the measure value |
| Measure value | The node’s measure value |
An empty value is not passed, and the event does not run when the chart’s interactions are turned off. To build the action, see Astrato Action Blocks.