How to use or subscribe to and work with event bus in grafana echarts panel

I’m looking in the eventBus thing of the echarts panel for quite a while now.
I’m confused and can’t find a way that I can use events like click and double click in the charts I planning to use
can anyone help with the thing. like how to use
context.grafana.eventBus
for click and double clicks and other events
or is there any other way of accessing them?