Custom gauge panel, data from datasource to editor tab and thresholds

Hi, I’m trying to create a custom gauge panel (Grafana 6, React) where thresholds could be dynamically updated every time with the data. For this I would need to have the data from datasource available in the editor tab for the user.

Any idea how I could do this?

The panel editor props https://github.com/grafana/grafana/blob/master/packages/grafana-ui/src/types/panel.ts#L39

has data property that is the last query result

1 Like

Thanks, this is exactly what I was looking for!
One reason I didn’t find this because I was working on v6.3.5 :grimacing: