# Legends on map

**URL:** <https://discuss.elastic.co/t/legends-on-map/306778>\
**Category:** Kibana\
**Created:** [June 9, 2022, 9:57am UTC](https://discuss.elastic.co/t/legends-on-map/306778 "2022-06-09T09:57:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![behappy\_alwayz0401](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/behappy_alwayz0401/32/105988_2.png) [@behappy\_alwayz0401](https://discuss.elastic.co/u/behappy_alwayz0401)\
**Post date:** [June 9, 2022, 9:57am UTC](https://discuss.elastic.co/t/legends-on-map/306778/1 "2022-06-09T09:57:03Z")

</div>

Is there a way to adjust the number template on the legends on a Kibana map.  
For e.g. it is currently showing the full length for large numbers. what if we want to show the numbers trimmed as $1000k etc. instead of the entire length?  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/6/4621598be3f01d729f4eebb15154b0820f05c2e6.png)

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [June 9, 2022, 6:03pm UTC](https://discuss.elastic.co/t/legends-on-map/306778/2 "2022-06-09T18:03:14Z")

</div>

Number templates in the Legend are based on [Kibana field formatters](https://www.elastic.co/guide/en/kibana/current/managing-data-views.html#managing-fields). These are set for each field in the Data View settings (previously known as Index Patterns in Kibana \<8.0).

Your screenshot is a little blurry, but it looks like your field name is `Abs Delta $`. Assuming you are using Kibana version \>=8.0, find and edit that field in your Data view (Stack Management - Data Views). Change the `Numeral.js format pattern` to `$0,0aK` as seen in my example screenshot below and save your changes. You can find this and more patterns in the [Numeral formatting documentation](https://www.elastic.co/guide/en/kibana/current/numeral.html).

 ![localhost_5601_gmu_app_maps_map (1)](https://us1.discourse-cdn.com/elastic/original/3X/f/e/fe0c3c1f1d2b560eb3dae694d844e0c855209258.png)

Now your legend should show the format you set for that field in the Data view.

 ![localhost_5601_gmu_app_maps_map (2)](https://us1.discourse-cdn.com/elastic/original/3X/5/a/5a0c655c65714c350cc475016906216a2da0ea64.png)

---

<div class="post-metadata">

**Author:** ![behappy\_alwayz0401](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/behappy_alwayz0401/32/105988_2.png) [@behappy\_alwayz0401](https://discuss.elastic.co/u/behappy_alwayz0401)\
**Post date:** [June 10, 2022, 5:29am UTC](https://discuss.elastic.co/t/legends-on-map/306778/3 "2022-06-10T05:29:36Z")

</div>

Understand, thanks a lot

---

<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 8, 2022, 5:29am UTC](https://discuss.elastic.co/t/legends-on-map/306778/4 "2022-07-08T05:29:50Z")

</div>

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