Skip to content

Commit

Permalink
Update vizro-core/docs/pages/user-guides/data.md
Browse files Browse the repository at this point in the history
Co-authored-by: Jo Stichbury <[email protected]>
  • Loading branch information
antonymilne and stichbury authored Nov 29, 2024
1 parent 9da32a8 commit 9fc39e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vizro-core/docs/pages/user-guides/data.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ For example, let us add two filters to the [dynamic data example](#dynamic-data)
2. This filter implicitly controls the dynamic data source `"iris"`, which supplies the `data_frame` to the targeted `vm.Graph`. On page refresh, Vizro reloads this data, finds all the unique values in the `"species"` column and sets the categorical selector's `options` accordingly.
3. Similarly, on page refresh, Vizro finds the minimum and maximum values of the `"sepal_length"` column in the reloaded data and sets new `min` and `max` values for the numerical selector accordingly.

If you have a filter that depends on dynamic data but do not want the available values to change when the dynamic data changes then you should manually specify the `selector`'s `options` field (categorical selector) or `min` and `max` fields (numerical selector). In the above example, this could be achieved as follows:
Consider a filter that depends on dynamic data, where you do **not** want the available values to change when the dynamic data changes. You should manually specify the `selector`'s `options` field (categorical selector) or `min` and `max` fields (numerical selector). In the above example, this could be achieved as follows:

```python title="Override selector options to make a dynamic filter static"
controls = [
Expand Down

0 comments on commit 9fc39e8

Please sign in to comment.