Hey Community!
I am currently using a filter element like this:
{
"id": "range_filter",
"source": "/path/to/file.source",
"config": {
"column": "numerical_column",
"label": "Value Range",
"columnType": "DOUBLE",
"rangeFilter": true
}
}
Displaying this element without applying it anywhere it seems like the element defaults to the min and max values of the data defined above:
However, applied inside the dataOptions/transformations of a datasource like this:
{
"type": "filter",
"config": {
"column": "numerical_column",
"columnType": "DOUBLE",
"range": {
"min": 0,
"$min": {
"type": "double",
"value": "{{filters.range_filter.numerical_column.valueRange.min}}"
},
"max": 50000,
"$max": {
"type": "double",
"value": "{{filters.range_filter.numerical_column.valueRange.max}}"
}
}
}
}
It changes the fields of the filter to display default values like this:
And I get an error message saying:
"Variable 'transformations' has an invalid value: Expected type 'Float' but was 'String'.
Which also prevents the source it is applied to from loading.
Manually typing in values at this point then filter the source like they are supposed to.
Is there a way to make the filter values default to the min and max of the data like in the first image, even when applied to the source? Alternatively, is it possible to manually set default values for a range filter like this?