I am trying to access filterManager to add or remove filters.
Seems API on this area changes quite frequently. Can't find any entry point for latest Kibana...
Using sample code from kibana/test/plugin_functional/plugins/kbn_tp_custom_visualizations/public/self_changing_vis
, it is possible to access it via _new_platform. Unfortunately the visualization or requestHandler are instantiated later, can not have access to filterManager object.
Any hint or sample code is welcome !! Thanks.
const reactVisType = visualizations.types.createReactVisualization({
name: 'self_changing_vis',
....