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"
}
}
}
}