Selection & Cell Bindings

The {{selection}} and {{cell}} binding syntax, with a worked example filtering one chart from another.

Selection & Cell Bindings

Selection bindings

"filter": "{{cell(selectedChart.selection, 0, \"Region\").asString}}"

This pulls the value of the Region column from the first selected row (0) of selectedChart, and substitutes it as a string into another widget's query.

Binding into a SAQL step

{
  "query": {
    "filter": "{{cell(regionChart.selection, 0, \"Region\").asString}}"
  }
}

When regionChart has no selection, the binding evaluates to nothing and the dependent query falls back to unfiltered — always design for the "nothing selected yet" case.

Multiple selections

asStringArray (instead of asString) pulls every selected row, not just the first — needed when a chart allows multi-select and a dependent query should filter on all of them (in [...]).

What you'll learn next

Next: binding to filter widgets, date range widgets, and text inputs instead of chart selections.