# How to change color of Bar graph

**URL:** <https://discuss.elastic.co/t/how-to-change-color-of-bar-graph/48790>\
**Category:** Kibana\
**Created:** [April 29, 2016, 9:36am UTC](https://discuss.elastic.co/t/how-to-change-color-of-bar-graph/48790 "2016-04-29T09:36:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karl\_Trasschaert](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@Karl\_Trasschaert](https://discuss.elastic.co/u/Karl_Trasschaert)\
**Post date:** [April 29, 2016, 9:36am UTC](https://discuss.elastic.co/t/how-to-change-color-of-bar-graph/48790/1 "2016-04-29T09:36:28Z")

</div>

Hi,

I'm starting with kibana 4.

I've created a new graph bar, i would like to know if it's possible to have one color per bar in the graph ?

Thx

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [April 29, 2016, 3:40pm UTC](https://discuss.elastic.co/t/how-to-change-color-of-bar-graph/48790/2 "2016-04-29T15:40:16Z")

</div>

Could you provide information as to how you've created the bar graph? What are your aggregations you've selected? There may be a solution depending on the data you're attempting to visualize.

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [April 29, 2016, 3:56pm UTC](https://discuss.elastic.co/t/how-to-change-color-of-bar-graph/48790/3 "2016-04-29T15:56:14Z")

</div>

Maybe this is a bit of a hack and there might be a better way, but here's how I do it;

First I create a bar chart. In this case Terms on field extension and all the bars are the same color;

 ![](https://us1.discourse-cdn.com/elastic/original/2X/6/6db4b100355990ca418015452d4e0a5214d78669.png)

Then I do a Split Bars aggregation on the same Terms of field extension and now I have colored bars;

 ![](https://us1.discourse-cdn.com/elastic/original/2X/6/623544e74fa802645e20fc4351dc029f8e55b7bd.png)

---

<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 6, 2017, 1:54pm UTC](https://discuss.elastic.co/t/how-to-change-color-of-bar-graph/48790/4 "2017-07-06T13:54:40Z")

</div>


