Hello, I have some pivot charts with the same filter (selection filter) and I’m trying to change the filter value in all pivot charts at the same time dynamically when user select a value in other combo box ¿is it possible to bind the combo onChange event with filters in pivot_chart or if not, how can I access the filter in pivot chart to change it dynamically?
Thank you very much!
Layout with all filters is available as
$$("pivot").getFilterView()
You can get the array of filters usinggetChildViews
, iterate through them and set the value to the needed one:
var filters = $$("pivot").getFilterView().getChildViews();
webix.toArray(filters).each(function(view){
if (view.config.field == name)
view.setValue(/* value */);
})