The custom label option does not function on the percentiles agg

Also broken on Median, not sure if it is related to this or should have it's own issue(?)

@rashidkpc @jakommo Where should the custom label go in the visualization? I'm assuming it should replace "percentile" but let me know if you expect to see something else happen.
@ycombinator I'd say it should be the field name. So in the above example it would replace request_size with the Custom label value test_median.
Thanks @jakommo. I'll make it so.
Fixed by #7021
Thanks @ycombinator
Does this also fixes it for Pie charts?
I think it's still broken in Kibana 5.x. The "median" aggregation still shows "50th percentile of varname" instead of the custom label (checked in Kibana 5.0.2).
Looks like still broken in 6.0.0-rc1. Happens with both metrics and arc/circle.
Still broken in 6.5.4
Still broken in 7.0.0
@ycombinator could you please reopen the issue?
There are two issues described here. The issue originally described was fixed by @ycombinator, and I am about to merge a fix for the Median labeling issue (which was tracked separately). The median labeling fix is here https://github.com/elastic/kibana/pull/58521
Given that the original issue here is fixed, I am closing.
Most helpful comment
I think it's still broken in Kibana 5.x. The "median" aggregation still shows "50th percentile of varname" instead of the custom label (checked in Kibana 5.0.2).