Feature request: Set term colors, dashboard-global


#1

Dashboards already trying to use the same colors for each term.
See the Status codes as an example:

It would be great to have a color settings storable on the dashboard, not the used graphs.
(Maybe later also a GUI element to set these colors for all terms in the current dashboard)

E.g. "404" should be red, "200" should be green.

Currently the only way is to set them dashboard-global is to change them as soon as they first appear (so if I never got an error, I can't make it red to be visible when happening)
Or if you need to set values which never appeared, you would need to go Management > Saved objects > Dashboards > {dashboard_name} > uiStateJSON, and change them one by one.

There should be a global "colors" array in the dashboard, so you can also add new visualisations later, without the need to apply the same colours there too.

Example of a current uiStateJSON:

{
  "P-1": {
    "vis": {
      "params": {
        "sort": {
          "columnIndex": null,
          "direction": null
        }
      }
    }
  },
  "P-10": {
    "vis": {
      "colors": {
        "200": "#3F6833",
        "201": "#B7DBAB",
        "304": "#65C5DB",
        "401": "#F9934E",
        "502": "#E24D42",
        "application/json": "#6D1F62",
        "application/json;charset=UTF-8": "#962D82",
        "application/x-ldjson": "#511749"
      },
      "legendOpen": true
    }
  },
  "P-3": {
    "vis": {
      "colors": {
        "200": "#B7DBAB",
        "201": "#508642",
        "302": "#82B5D8",
        "304": "#B7DBAB",
        "400": "#BA43A9",
        "401": "#F9BA8F",
        "404": "#E24D42",
        "502": "#BF1B00"
      },
      "legendOpen": true
    }
  },
  // ...
  "P-9": {
    "vis": {
      "colors": {
        "200": "#3F6833",
        "201": "#B7DBAB",
        "application/json": "#3F2B5B",
        "application/json;charset=UTF-8": "#584477",
        "application/x-ldjson": "#614D93"
      }
    }
  }
}

(Peter Pisljar) #2

please add feature requests to github


#3

And now I wonder why I created a account here.


(Peter Pisljar) #4

this is a place to ask questions and get support, but everything development related is tracked on github.


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.