# Filtering the Data

* Navigate to the Designer Canvas page.
* Drag a chart together with a filter component to the canvas.

![](/files/l6O2N0mtTDP9Fkx2mc9g)

* Create two data connections.     &#x20;

![](/files/dG13QUw4KrO6Gzb2kgaW)

* Associate one data connection with the chart and the other with the filter.

![](/files/fIovW9ypYlXRm2cyDXZH)

![](/files/PlOPyfvej8ChVSbyyy37)

* Add a filter parameter to the chart connection condition.

![](/files/WWtswdzThZhl7MFSO4B2)

* Navigate to the ***Script on load*** page of the filter component.
* Add the sdk.reload( \[ 'ConnectionID\_1' ] ); to filter the chart data.

![](/files/0tTE3YAHdk1VJQB9bRYc)

{% hint style="info" %} <mark style="color:green;">Please Note</mark>: The *ConnectionID\_1* should be chart connection.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bdb.ai/bdb-documentation/data-visualization/governed-dashboards/configuration/filtering-the-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
