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
Thanks, this is exactly what I was looking for! One reason I didn’t find this because I was working on v6.3.5
I’m doing the same and I’m lost how to configure properties in 7.0.1… nor reading the GaugePanel code I can understand how to setup properties and there is any example in https://developers.grafana.com/ui/canary/index.html?path=/story/docs-overview-intro--page Is it similar to setup code for https://developers.grafana.com/ui/canary/index.html?path=/story/visualizations-bargauge--gradient-horizontal ?