# Consistent Pie Colors

**URL:** <https://discuss.elastic.co/t/consistent-pie-colors/133095>\
**Category:** Kibana\
**Created:** [May 24, 2018, 9:02am UTC](https://discuss.elastic.co/t/consistent-pie-colors/133095 "2018-05-24T09:02:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cawoodm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cawoodm/32/14083_2.png) [@cawoodm](https://discuss.elastic.co/u/cawoodm)\
**Post date:** [May 24, 2018, 9:02am UTC](https://discuss.elastic.co/t/consistent-pie-colors/133095/1 "2018-05-24T09:02:20Z")

</div>

I find my self almost daily adapting the colors of buckets in my pie charts. They keep changing "magically".

In one example it's just different between a pie in the dashboard and that same visualisation viewed on it's own.

Dashboard:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/1/01ed30833aa8f33b15c0b53495fc3ba2b6f0bbb1.png)

Visualization:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/a/3a3614badc31ac50043216514998cc437edcd8c0.png)

Yes, I do click save each time I change colors.

Is there method to this madness?

1. Are colors stored separately between dashboard and vis?
2. When are colors automagically "reset"? I know they are but I don't see a clear pattern!
3. What are colors bound to? Text?

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [May 24, 2018, 11:10am UTC](https://discuss.elastic.co/t/consistent-pie-colors/133095/2 "2018-05-24T11:10:56Z")

</div>

Hi Marc,

you asked exactly the right questions I assume:

1. Colors are indeed stored separately between vis and dashboard, or more clearly: The colors when being in vis editor will be stored with the visualization. If you place it now on a dashboard the chart should have the same colors. If you change the colors on the dashboard and save the dashboard, those colors are now stored with the dashboard, and overwrite the colors of the vis. So making further changes to the vis colors won't update the colors used on THIS dashboard. I am still not 100% convinced by that behavior and we have an ongoing discussion about what we actually want that behavior to be, to be the least confusing (and still fulfill the wishes users were asking for).

2. Colors should never be automagically reseted actually, but we are aware that there is a bug in the color selection, that seems to be specific to pie charts: [https://github.com/elastic/kibana/issues/13653](https://github.com/elastic/kibana/issues/13653)

3. Yeah the text that will be shown in the legend, so changing that text will always change the colors.

I hope that answers could clarify a bit on the behavior of colors.

Cheers,  
Tim

---

<div class="post-metadata">

**Author:** ![cawoodm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cawoodm/32/14083_2.png) [@cawoodm](https://discuss.elastic.co/u/cawoodm)\
**Post date:** [May 24, 2018, 12:55pm UTC](https://discuss.elastic.co/t/consistent-pie-colors/133095/3 "2018-05-24T12:55:16Z")

</div>

Thanks for the clarification. That explains some of what I am seeing though I do suspect a bug somewhere due to "magical" changes.

For my part I would prefer to globally map certain texts to colors. I always want category: ERROR to be red, category: WARNING to be orange etc. I always want type: customer to be blue and type: user to be light blue.

So maybe that's an idea for some sort of global dictionary of palette colors.

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [May 24, 2018, 5:23pm UTC](https://discuss.elastic.co/t/consistent-pie-colors/133095/4 "2018-05-24T17:23:33Z")

</div>

Please feel free to file a [feature request](https://github.com/elastic/kibana/issues/new?template=Feature_request.md) in our repositories for a global color dictionary. I have looked shortly and it seems we don't have a feature request for that yet.

---

<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:** [June 21, 2018, 5:27pm UTC](https://discuss.elastic.co/t/consistent-pie-colors/133095/5 "2018-06-21T17:27:16Z")

</div>

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