Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for range mappings on stat panel #222

Open
AndersSoee opened this issue Apr 27, 2023 · 0 comments · May be fixed by #223
Open

Support for range mappings on stat panel #222

AndersSoee opened this issue Apr 27, 2023 · 0 comments · May be fixed by #223

Comments

@AndersSoee
Copy link

singlestat panel is deprecated, but the stat panel only supports a small portion of the features.
One thing i am missing is support for mappings.
This is the json from grafana, from such a mapping.
How would you go about adding that?
I guess it would also require changes in the sdk.

"type": "stat",
  "fieldConfig": {
    "defaults": {
      "mappings": [
        {
          "type": "range",
          "options": {
            "from": 0,
            "to": 0.9,
            "result": {
              "text": "DOWN"
            }
          }
        },
        {
          "type": "range",
          "options": {
            "from": 1,
            "to": 1,
            "result": {
              "text": "UP"
            }
          }
        },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant