# Renaming the segments of pie chart and associated data value

**URL:** <https://discuss.elastic.co/t/renaming-the-segments-of-pie-chart-and-associated-data-value/362311>\
**Category:** Kibana\
**Tags:** lens\
**Created:** [July 1, 2024, 6:03pm UTC](https://discuss.elastic.co/t/renaming-the-segments-of-pie-chart-and-associated-data-value/362311 "2024-07-01T18:03:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![timadsit](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@timadsit](https://discuss.elastic.co/u/timadsit)\
**Post date:** [July 1, 2024, 6:03pm UTC](https://discuss.elastic.co/t/renaming-the-segments-of-pie-chart-and-associated-data-value/362311/1 "2024-07-01T18:03:03Z")

</div>

Hello,

I am mapping logs to a severity of numbers 1-4.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/1/61ebd4fa85e9d5fa139cde61bfacc5caa6c173dc.png)  
For the life of me I cannot find anywhere that talks about renaming the names of the slices to something readable. Any help in renaming the numbers to text?

Thanks.

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [July 2, 2024, 8:21am UTC](https://discuss.elastic.co/t/renaming-the-segments-of-pie-chart-and-associated-data-value/362311/2 "2024-07-02T08:21:36Z")

</div>

Hi @timadsit

in general I'd recommend use formatters, as the lookup formatter.  
But if you've used filters to define the buckets custom labels can be used there as well.
