Access filterManager from a custom React visualization plugin - v7.6 or higher

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',

Just found the answer my self via requestHandler

export const visRequestHandler = async (vis) => {

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.