# Pie chart colors change

**URL:** https://discuss.elastic.co/t/pie-chart-colors-change/184036
**Category:** Kibana
**Tags:** canvas
**Created:** [June 3, 2019, 5:55pm UTC](https://discuss.elastic.co/t/pie-chart-colors-change/184036 "2019-06-03T17:55:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wadhah](https://avatars.discourse-cdn.com/v4/letter/w/bc8723/32.png) [@wadhah](https://discuss.elastic.co/u/wadhah)
#### Post date: [June 3, 2019, 5:55pm UTC](https://discuss.elastic.co/t/pie-chart-colors-change/184036/1 "2019-06-03T17:55:13Z")

</div>

Hello,

I created a pie chart showing according to the available data : available, unavailable and unknown.  
I want to attach a specific color for each value : let's say for example green for available, yellow for unavailable and red for unknown (on the chart).  
How can I do that?  
Thanks in advance

---

<div class="post-metadata">

### Author: ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)
#### Post date: [June 3, 2019, 11:08pm UTC](https://discuss.elastic.co/t/pie-chart-colors-change/184036/2 "2019-06-03T23:08:07Z")

</div>

Click the add button next to "Chart style" and add a "Series style". Select the series type (e.g. "available") and the color you want to use for that series. Repeat this process for all slices you want to customize.

 ![Screenshot_2019-06-03%20Canvas%20-%20Kibana](https://us1.discourse-cdn.com/elastic/original/3X/5/0/505a753695e27ea3e3895ff0bdd8ec6528b4a6cc.png)

---

<div class="post-metadata">

### Author: ![wadhah](https://avatars.discourse-cdn.com/v4/letter/w/bc8723/32.png) [@wadhah](https://discuss.elastic.co/u/wadhah)
#### Post date: [June 4, 2019, 10:39am UTC](https://discuss.elastic.co/t/pie-chart-colors-change/184036/3 "2019-06-04T10:39:01Z")

</div>

Thank you so much @nickpeihl for you help.  
I have an other question if you please, how can I exploit the "dropdown column" : for example i am showing a metric (costs), and I want to display the "costs" of different "categories".  
When it's on 'any' it gives me a correct value which is the sum of the costs of different categories.  
However, when I choose one of the "categories" , It is all the time giving me 0.  
So, can you tell me please how can I proceed?

---

<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: [July 2, 2019, 10:39am UTC](https://discuss.elastic.co/t/pie-chart-colors-change/184036/4 "2019-07-02T10:39:03Z")

</div>

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