Data Set Filters
Last updated
Was this helpful?
Last updated
Was this helpful?
We provide a way to filter data sets dynamically, to affect all the charts that use a specific data set. The filter is a component in itself so it will be using an order, and it will need to be passed an exiting shared data set by name.
The function to use is the following (using s
as the Shimoku client):
The filter works with 4 types of inputs, for different types of values, this will be inferred by the field to be filtered. The types are:
Numeric values (it lets the user chose the operation):
Date values:
Categorical values (single or multi select):
For an example we will be using this data set:
and we will use three linked charts joined to this data set:
To use the numeric filter we will specify the x
field as it has more variation than the y
field:
The possible operations are the following:
If we set the operation to >
and the value to 4
we get:
It is not recommended to use more than one filter on a single data set, only one filter can have effect on a data set at a time, and this can be confusing for the user.