'graph-hover' events in React panels?

Hi there,

I am developing a panel to display an image based on the mouse position over a graph (similar to synchronized tooltips).
So far, I have been able to have it working using angularJS, as I can access graph-hover events from appEvents easily, but I’d rather use React to implement my panel as it seems to be more future-proof according to Grafana’s roadmap (and we are a React shop, too…).

I only found this topic Access to core events & setting time range from a React ts panel, but the solution sounds pretty hacky to me…

Is it something that is doable with React panels or do I have to stick to angularJS for now, hoping that those events (or a similar feature) will be implemented in the future?

1 Like

Have you solved this? Why find documentation about events is so difficult from grafana?