When you already know how to work with the anychart module, this should be easy.
Create a non persistent helper entity with attributes that contain the filter, f.e. a string search field and a enumeration field.
Create a dataview with the helper entity on your page surrounding the chart widget, make sure the source is microflow and create/return the helper entity there. place the attributes from the helper entity in the dataview.
Set an on change microflow to change actions of the attributes from the helper entity, make sure you refresh the helper entity in the on change event. This will also trigger the anychart data to refresh.
Now when the anychart microflow, that creates the json, is refreshed, you should be able to add the helper entity here as argument to this microflow and use the values here to filter data.