# Legend of a map

**URL:** <https://discuss.elastic.co/t/legend-of-a-map/332999>\
**Category:** Kibana\
**Created:** [May 9, 2023, 7:47pm UTC](https://discuss.elastic.co/t/legend-of-a-map/332999 "2023-05-09T19:47:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phildefer](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@Phildefer](https://discuss.elastic.co/u/Phildefer)\
**Post date:** [May 9, 2023, 7:47pm UTC](https://discuss.elastic.co/t/legend-of-a-map/332999/1 "2023-05-09T19:47:49Z")

</div>

Hi,

Just a question :  
For the moment it's impossible to change the label in the legend of a map. Do you know if this feature is expected or not? t would be very useful because sometimes the legend is not very meaningful ....  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/a/ca0ca44afec3ed5ed3c920349a49d77f88583550.png)

Thx.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [May 10, 2023, 2:18pm UTC](https://discuss.elastic.co/t/legend-of-a-map/332999/2 "2023-05-10T14:18:51Z")

</div>

The legend label uses the field name. You can set a custom field name for the field that will get displayed in the legend.

To set a custom field label, go to left nav Stack Management -\> Data views. Open your data view and edit the field.

 ![Screen Shot 2023-05-10 at 8.18.09 AM](https://us1.discourse-cdn.com/elastic/original/3X/a/4/a4f9f11dd81fd336b1c58679953c1df42f9dbe12.jpeg)

---

<div class="post-metadata">

**Author:** ![Phildefer](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@Phildefer](https://discuss.elastic.co/u/Phildefer)\
**Post date:** [May 10, 2023, 6:42pm UTC](https://discuss.elastic.co/t/legend-of-a-map/332999/3 "2023-05-10T18:42:39Z")

</div>

Thx,

The problem is that I don't to replace the label of the field himself but the label of the items within the field like the 17, 12, 22, 23 ... in my example by Cat1 bla bla bla, cat2 bla bla bla ...

Best.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [May 10, 2023, 10:34pm UTC](https://discuss.elastic.co/t/legend-of-a-map/332999/4 "2023-05-10T22:34:45Z")

</div>

In the same screen, you can "Set format". Use "Static lookup" to provide a value for each key.

---

<div class="post-metadata">

**Author:** ![Phildefer](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@Phildefer](https://discuss.elastic.co/u/Phildefer)\
**Post date:** [May 11, 2023, 1:04am UTC](https://discuss.elastic.co/t/legend-of-a-map/332999/5 "2023-05-11T01:04:59Z")

</div>

Thx so much! and sorry for my ignorance

---

<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:** [June 8, 2023, 1:05am UTC](https://discuss.elastic.co/t/legend-of-a-map/332999/6 "2023-06-08T01:05:15Z")

</div>

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