Adding buttons in kibana markup visualisations

here there is an example of a vega visualization with a button to interact with the filter bar: