IconResources
Visualize intelligence

Filters

Add an interactive filter to control what's shown in a chart.

Filters let users interact with a chart by selecting specific values or ranges. Use them to explore different subsets of the data without editing the chart structure.

Add a filter

This example uses a dropdown filter to toggle which category (AA, AB, or both) is visible in a grouped bar chart.

t0 Prompt

Select data in the context dropdown of the chat window.

add a dropdown to filter category

toggle between AA, AB, and all

show bar chart by selection

Code

{
...
"params": [
{
  "name": "filterCategory",
  "bind": {
    "input": "select",
    "name": "Choose Category",
    "options": ["All", "AA", "AB"],
    "labels": ["All", "AA only", "AB only"]
  },
  "value": "All"
}
],
"transform": [
{
  "filter": "filterCategory === 'All' || datum.Category === filterCategory"
}
],
...
}

t0 screenshot - Filter bar chart

Configuration options

PropertyDescription
params.nameSignal name used in filters and expressions.
bind.inputSets the input type (e.g., "select" for dropdown).
bind.nameOptional label above the dropdown. Set to "" to hide completely.
bind.optionsValues available to select.
bind.labelsHuman-friendly display text for each option.
valueInitial selection value when the chart loads.
transform.filterFilter logic using the selected signal.
view.strokeRemoves border from the chart area.
autosizeEnsures the chart fits responsively in the container.

On this page