# Feature request: Set term colors, dashboard-global

**URL:** <https://discuss.elastic.co/t/feature-request-set-term-colors-dashboard-global/83511>\
**Category:** Kibana\
**Created:** [April 25, 2017, 8:02am UTC](https://discuss.elastic.co/t/feature-request-set-term-colors-dashboard-global/83511 "2017-04-25T08:02:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![luckydonald](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@luckydonald](https://discuss.elastic.co/u/luckydonald)\
**Post date:** [April 25, 2017, 8:02am UTC](https://discuss.elastic.co/t/feature-request-set-term-colors-dashboard-global/83511/1 "2017-04-25T08:02:42Z")

</div>

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

 ![](https://us1.discourse-cdn.com/elastic/original/3X/0/e/0ea2867ec98e36375c44fb70990560d6f1c92aa1.png)

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

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [April 25, 2017, 10:25am UTC](https://discuss.elastic.co/t/feature-request-set-term-colors-dashboard-global/83511/2 "2017-04-25T10:25:20Z")

</div>

please add feature requests to [github](https://github.com/elastic/kibana)

---

<div class="post-metadata">

**Author:** ![luckydonald](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@luckydonald](https://discuss.elastic.co/u/luckydonald)\
**Post date:** [April 25, 2017, 11:21am UTC](https://discuss.elastic.co/t/feature-request-set-term-colors-dashboard-global/83511/3 "2017-04-25T11:21:19Z")

</div>

And now I wonder why I created a account here.

> <https://github.com/elastic/kibana/issues/11404>

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [April 25, 2017, 12:03pm UTC](https://discuss.elastic.co/t/feature-request-set-term-colors-dashboard-global/83511/4 "2017-04-25T12:03:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 23, 2017, 12:14pm UTC](https://discuss.elastic.co/t/feature-request-set-term-colors-dashboard-global/83511/5 "2017-05-23T12:14:40Z")

</div>

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