# Create custom label for pie chart

**URL:** <https://discuss.elastic.co/t/create-custom-label-for-pie-chart/211271>\
**Category:** Kibana\
**Created:** [December 10, 2019, 10:25am UTC](https://discuss.elastic.co/t/create-custom-label-for-pie-chart/211271 "2019-12-10T10:25:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thotakura2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thotakura2/32/56839_2.png) [@thotakura2](https://discuss.elastic.co/u/thotakura2)\
**Post date:** [December 10, 2019, 10:25am UTC](https://discuss.elastic.co/t/create-custom-label-for-pie-chart/211271/1 "2019-12-10T10:25:47Z")

</div>

Hi,  
I am new for elasticsearch and kibana while creating visualization i have faced a small issue.  
In the following image you can see the labels are set to **1,2,3,4,5**. Instead of these i want the name of that highest count person which is mapped in same index with field name as **name**

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/6/a62f3ae8f647f5eaaa1376e71418a3dc01b77617.png)

Is there any possible way to acheive this

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [December 12, 2019, 11:17pm UTC](https://discuss.elastic.co/t/create-custom-label-for-pie-chart/211271/2 "2019-12-12T23:17:39Z")

</div>

which version of the stack are you on ? [https://github.com/elastic/kibana/pull/10219](https://github.com/elastic/kibana/pull/10219) This is already available in the later versions.

Thanks  
Rshmi

---

<div class="post-metadata">

**Author:** ![thotakura2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thotakura2/32/56839_2.png) [@thotakura2](https://discuss.elastic.co/u/thotakura2)\
**Post date:** [December 16, 2019, 6:07am UTC](https://discuss.elastic.co/t/create-custom-label-for-pie-chart/211271/3 "2019-12-16T06:07:47Z")

</div>

I am using kibana and elastic search with 7.5 version.  
I have seen a option to give custom label, this label will be static i want something more like dynamic.  
But, In my index pattern i am having name(string),pub\_no(number), when i am using pie chart to display top 5 based on count of pub\_no i want the label as name of that particular count. I want it to change name dynamically as some new user gets in the top, instead of changing the label manually.

---

<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:** [January 13, 2020, 6:16am UTC](https://discuss.elastic.co/t/create-custom-label-for-pie-chart/211271/4 "2020-01-13T06:16:53Z")

</div>

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