grafana-toolbox / grafanimate

Animate timeseries data with Grafana.
https://community.panodata.org/t/grafanimate/205
GNU Affero General Public License v3.0
47 stars 7 forks source link

Event handling broken since Grafana 8 introduced React #17

Open amotl opened 2 years ago

amotl commented 2 years ago

Hi there,

since Grafana 8 introduced React, grafanimate is having a hard time to properly synchronize with the frontend in order to capture frames efficiently. More information can be found at ^1.

With kind regards, Andreas.

amotl commented 1 year ago

@IntermittentNRG apparently found a solution for newer versions of Grafana, and submitted GH-19, reflecting that. Thanks a stack!

The code just invokes grafanaRuntime.getPanelData() and checks the result items for state=='Done', without further ado. It could have been so easy! ;]

It is still a synthesized event handling, but much better than waiting for unknown amounts of time through the currently implemented exposure-time option.