# Kibana - assign color to term sub aggregation

**URL:** <https://discuss.elastic.co/t/kibana-assign-color-to-term-sub-aggregation/62762>\
**Category:** Kibana\
**Created:** [October 11, 2016, 10:57pm UTC](https://discuss.elastic.co/t/kibana-assign-color-to-term-sub-aggregation/62762 "2016-10-11T22:57:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rupaln](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@rupaln](https://discuss.elastic.co/u/rupaln)\
**Post date:** [October 11, 2016, 10:57pm UTC](https://discuss.elastic.co/t/kibana-assign-color-to-term-sub-aggregation/62762/1 "2016-10-11T22:57:06Z")

</div>

I have a report where y-axis shows count, x-axis is date histogram and for sub aggregation, I split lines by a term which is a field in elastic search. Is there any way I can assign colors to the lines in line chart before hand and save it in the report definition.

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [October 12, 2016, 10:19pm UTC](https://discuss.elastic.co/t/kibana-assign-color-to-term-sub-aggregation/62762/2 "2016-10-12T22:19:11Z")

</div>

Hi there,

If you click on a key in the legend in the top right corner, you should be able to select a color for the line. See screenshot below (it's for Area Chart, but Line Chart should offer the same functionality).

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

Does this help?

Thanks,  
CJ

---

<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:36pm UTC](https://discuss.elastic.co/t/kibana-assign-color-to-term-sub-aggregation/62762/3 "2017-07-06T13:36:58Z")

</div>


