# Kibana Timelion Legend Position

**URL:** <https://discuss.elastic.co/t/kibana-timelion-legend-position/135296>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [June 11, 2018, 6:37am UTC](https://discuss.elastic.co/t/kibana-timelion-legend-position/135296 "2018-06-11T06:37:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dhanashree](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@Dhanashree](https://discuss.elastic.co/u/Dhanashree)\
**Post date:** [June 11, 2018, 6:37am UTC](https://discuss.elastic.co/t/kibana-timelion-legend-position/135296/1 "2018-06-11T06:37:28Z")

</div>

Hi,  
How can i change the legend position to top of the graph in timelion? Currently i am getting options for the legend position as north,south or no legend. I am using kibana 6.2.2. version

---

<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:** [June 12, 2018, 7:20am UTC](https://discuss.elastic.co/t/kibana-timelion-legend-position/135296/2 "2018-06-12T07:20:05Z")

</div>

I am not sure what exactly you mean with "top of the graph"? The default option is, that it is at the top of the graph (or what option "north" would do. Are you looking into having it outside the chart? If so, that's not possible at the moment.

Cheers,  
Tim

---

<div class="post-metadata">

**Author:** ![Dhanashree](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@Dhanashree](https://discuss.elastic.co/u/Dhanashree)\
**Post date:** [June 26, 2018, 4:23am UTC](https://discuss.elastic.co/t/kibana-timelion-legend-position/135296/3 "2018-06-26T04:23:09Z")

</div>

Hi @timroes  
By top of the graph i mean currently i am getting all the labels in a column format one below the other. But i want it to be in row format labels next to each other.Because i am showing top n values in the timelion and the labels are overlapping the lines of the graph so to avoid that how can i display the labels in row format?

---

<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:** [June 26, 2018, 6:39am UTC](https://discuss.elastic.co/t/kibana-timelion-legend-position/135296/4 "2018-06-26T06:39:29Z")

</div>

Hi,

to display multiple columns in the legend, you can use the `columns` parameter to the `legend` function like that:

`.es().legend(columns=5)`

which would result in the legend now being 5 columns wide, instead of one.

Cheers,  
Tim

---

<div class="post-metadata">

**Author:** ![Dhanashree](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@Dhanashree](https://discuss.elastic.co/u/Dhanashree)\
**Post date:** [June 26, 2018, 7:54am UTC](https://discuss.elastic.co/t/kibana-timelion-legend-position/135296/5 "2018-06-26T07:54:19Z")

</div>

Hi, @timroes  
I want labels as row format like  
**label 1:a,label 2:b**  
Currently i am getting in column format as  
**label 1:a**  
**label 2:b**

Is it possible to position it like this?

---

<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:** [June 26, 2018, 8:09am UTC](https://discuss.elastic.co/t/kibana-timelion-legend-position/135296/6 "2018-06-26T08:09:46Z")

</div>

Have you tried the above method? Could you please make a screenshot showing your expression and output?

---

<div class="post-metadata">

**Author:** ![Dhanashree](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@Dhanashree](https://discuss.elastic.co/u/Dhanashree)\
**Post date:** [June 26, 2018, 10:20am UTC](https://discuss.elastic.co/t/kibana-timelion-legend-position/135296/7 "2018-06-26T10:20:35Z")

</div>

The above method worked Thank you. 🙂

---

<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 24, 2018, 10:20am UTC](https://discuss.elastic.co/t/kibana-timelion-legend-position/135296/8 "2018-07-24T10:20:37Z")

</div>

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