# Pre-Define Colors for Stacked Bar chart

**URL:** https://discuss.elastic.co/t/pre-define-colors-for-stacked-bar-chart/136823
**Category:** Kibana
**Created:** [June 21, 2018, 10:14am UTC](https://discuss.elastic.co/t/pre-define-colors-for-stacked-bar-chart/136823 "2018-06-21T10:14:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![safdar](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@safdar](https://discuss.elastic.co/u/safdar)
#### Post date: [June 21, 2018, 10:14am UTC](https://discuss.elastic.co/t/pre-define-colors-for-stacked-bar-chart/136823/1 "2018-06-21T10:14:06Z")

</div>

Hi,  
Trying to plot a stacked bar chart in Kibana. Is there a way where we can define a fixed color palette for the stacked bars to select from rather than automatically selecting the colors

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

In the above image, trying to plot a graph of Processed Vs Rejected Records coming from source. Source names can be anythings, In my example it is defined a GNUP-1,GNUP-2 and GNUP-3. Is there a way where I can say

Source 1 Processed - Green  
Source 1 Rejected - Red  
Source 2 Processed - Yellow  
Source 2 Rejected - Orange  
.. etc  
I have selected the colors what I need in my dashboard and then imported back on other system. Since source names are different it selected the colors automatically.

Is there a way where I can define the Colors per source irrespective of the value .

---

<div class="post-metadata">

### Author: ![a5a](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@a5a](https://discuss.elastic.co/u/a5a)
#### Post date: [June 21, 2018, 3:01pm UTC](https://discuss.elastic.co/t/pre-define-colors-for-stacked-bar-chart/136823/2 "2018-06-21T15:01:29Z")

</div>

Hi, It appears that this is not possible yet, see this issue: [https://github.com/elastic/kibana/issues/17764](https://github.com/elastic/kibana/issues/17764)

---

<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 19, 2018, 3:01pm UTC](https://discuss.elastic.co/t/pre-define-colors-for-stacked-bar-chart/136823/3 "2018-07-19T15:01:44Z")

</div>

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