ae3e / ae3e-plotly-panel

Plotly panel for Grafana
Apache License 2.0
94 stars 24 forks source link

Support key/value pairs #38

Open dwaydaniel opened 2 years ago

dwaydaniel commented 2 years ago

https://github.com/ae3e/ae3e-plotly-panel/blob/23f38d25549ab028e6e7626a34c479c84ba7a498/src/SimplePanel.tsx#L37

I am using key/value pairs (or "text/value" in Grafana's case) for dropdown variables which I am referencing in your plugin. However you seem to be supplying the text rather than the values for those kind of variables. Any way to maybe have this supported?

EDIT: Maybe just forward Grafana's standard variable representation? I think that would be ideal.