# Visualizations: changing aggregation text on a median?

**URL:** <https://discuss.elastic.co/t/visualizations-changing-aggregation-text-on-a-median/226138>\
**Category:** Kibana\
**Created:** [April 1, 2020, 11:38pm UTC](https://discuss.elastic.co/t/visualizations-changing-aggregation-text-on-a-median/226138 "2020-04-01T23:38:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tedder](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tedder/32/42460_2.png) [@tedder](https://discuss.elastic.co/u/tedder)\
**Post date:** [April 1, 2020, 11:38pm UTC](https://discuss.elastic.co/t/visualizations-changing-aggregation-text-on-a-median/226138/1 "2020-04-01T23:38:20Z")

</div>

When creating a line chart, I'm seeing "50th Percentile of [Fieldname]" for labels, like this:

 ![Screenshot from 2020-04-01 16-31-42](https://us1.discourse-cdn.com/elastic/original/3X/2/7/27aebd94d4ff47c08e463ab60bb8d5f2383e5ad9.png)

If I set a custom label, it only changes the ".. of [Fieldname]" part- in other words, it doesn't seem to be possible to get rid of the "50th percentile of" text. In the example below I set the custom label to literally "custom".  
 ![Screenshot from 2020-04-01 16-31-56](https://us1.discourse-cdn.com/elastic/original/3X/3/4/34e09bebee0b1fd0bee1783ac0ebca3011a76e34.png)

This seems to be unique to the median type- with the others, a custom label will overwrite the entire label. Here's an example with 'minimum':  
 ![Screenshot from 2020-04-01 16-34-21](https://us1.discourse-cdn.com/elastic/original/3X/9/2/92957204fed63383d5261e546319efefc1ce7939.png)

I tested and this is true on 'area' and 'horizontal bar' graphs too.

I'm on 7.6.

---

<div class="post-metadata">

**Author:** ![tedder](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tedder/32/42460_2.png) [@tedder](https://discuss.elastic.co/u/tedder)\
**Post date:** [April 1, 2020, 11:53pm UTC](https://discuss.elastic.co/t/visualizations-changing-aggregation-text-on-a-median/226138/2 "2020-04-01T23:53:59Z")

</div>

Possibly related things:

- [kibana#13025](https://github.com/elastic/kibana/issues/13025) (though it's a bit more esoteric/feature-creep)
- [label change from 'median of' to '50th percentile of'](https://github.com/elastic/kibana/pull/58521/commits/9029448c9abbc898ed14b49fd97ecb3ba0411f17#diff-e9e07763f73aaa21208bad0a101684bbL81) (this is only context, not changing the customization)
- [discussion/acknowledgement that the label text is fixed](https://github.com/elastic/kibana/issues/18912) (and was considered 'expected behavior')- [where the label is created, including with the custom bit, in the .ts](https://github.com/elastic/kibana/blob/05c995a939a8a8fea80f2e5447e5ce43648f9f07/src/plugins/data/public/search/aggs/metrics/percentiles.ts#L30)
- [yet it was fully customizable (!) in 2016](https://github.com/elastic/kibana/pull/7021/files#diff-f50fb2c51aa27c2fd3563b58db22ccfdL19)

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [April 1, 2020, 11:56pm UTC](https://discuss.elastic.co/t/visualizations-changing-aggregation-text-on-a-median/226138/3 "2020-04-01T23:56:02Z")

</div>

I fixed this, but it is not out yet. It will be in 7.7: [https://github.com/elastic/kibana/pull/58521](https://github.com/elastic/kibana/pull/58521)

---

<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 29, 2020, 11:56pm UTC](https://discuss.elastic.co/t/visualizations-changing-aggregation-text-on-a-median/226138/4 "2020-04-29T23:56:04Z")

</div>

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