# Customize legend

**URL:** <https://discuss.elastic.co/t/customize-legend/124866>\
**Category:** Kibana\
**Created:** [March 20, 2018, 8:57pm UTC](https://discuss.elastic.co/t/customize-legend/124866 "2018-03-20T20:57:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JozefPaulisin](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@JozefPaulisin](https://discuss.elastic.co/u/JozefPaulisin)\
**Post date:** [March 20, 2018, 8:57pm UTC](https://discuss.elastic.co/t/customize-legend/124866/1 "2018-03-20T20:57:47Z")

</div>

Hey there,

is it possible to change the values in legend?

My visualization looks like:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/4/7404f1a4377a0c5d4f60422de6057e0162e4f646.png)

Records are grouped by date and layout of them (in each day) is by ID - because I need to show order at which occurs.

Visualization shows everything as I need, but the legend for the graph is not telling much for the user. Is it possible to change the values in legend, such that there won't be only its ID but also some other parameter assigned to record with that ID? Sth like:

- 35349 - record type XY
- 35350 - record type XX
- 35351 - record type XX  
...

Thanks for an answer.

Regards,  
Jozef

---

<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:** [March 21, 2018, 10:36am UTC](https://discuss.elastic.co/t/customize-legend/124866/2 "2018-03-21T10:36:39Z")

</div>

Hi Jozef,

that's unfortunately currently not possible. The only way you could achieve that is by [writing a custom field formatter](https://www.elastic.co/blog/kibana-custom-field-formatters) that would output whatever information you need for that value.

Is that information also stored within the same documents? In that case, why don't you just use this additional information fields in your terms aggregation to group by instead of the id field?

Cheers,  
Tim

---

<div class="post-metadata">

**Author:** ![JozefPaulisin](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@JozefPaulisin](https://discuss.elastic.co/u/JozefPaulisin)\
**Post date:** [March 21, 2018, 8:17pm UTC](https://discuss.elastic.co/t/customize-legend/124866/3 "2018-03-21T20:17:17Z")

</div>

Hi @timroes,

thanks for an asnwer.

Only reason, why I'm using the ID is, that I need to show order by which the 'events' occurs in a visualization and it's only parameter I can use for this purpose.

Yes, the information (state type) is also stored in the same document. What do you mean by additional information?

Thank you.

Jozef.

---

<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:** [April 18, 2018, 8:17pm UTC](https://discuss.elastic.co/t/customize-legend/124866/4 "2018-04-18T20:17:19Z")

</div>

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