# Key/label for range aggregation split chart on metric in kibana v6.5.4

**URL:** https://discuss.elastic.co/t/key-label-for-range-aggregation-split-chart-on-metric-in-kibana-v6-5-4/179149
**Category:** Kibana
**Created:** [April 30, 2019, 8:06pm UTC](https://discuss.elastic.co/t/key-label-for-range-aggregation-split-chart-on-metric-in-kibana-v6-5-4/179149 "2019-04-30T20:06:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![EtienneDemers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/etiennedemers/32/23474_2.png) [@EtienneDemers](https://discuss.elastic.co/u/EtienneDemers)
#### Post date: [April 30, 2019, 8:06pm UTC](https://discuss.elastic.co/t/key-label-for-range-aggregation-split-chart-on-metric-in-kibana-v6-5-4/179149/1 "2019-04-30T20:06:02Z")

</div>

I want to create a count metric visualisation in kibana with a split chart based on the range aggregation and i want to change the key or label for each of my ranges. I've seen the doc about the key property of the range aggregation in elasticsearch but i don't seem to be able to find any integration of it in kibana. Is there a way to precise a key or label value to my ranges trough the JSON input or something else? Should i create a distinct metric for each range and use a query filter for my range and use the metric label instead of using a split chart with the range aggregation? There must be a more straight forward way to achieve this. Any insight is welcome!

---

<div class="post-metadata">

### Author: ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)
#### Post date: [May 3, 2019, 1:38pm UTC](https://discuss.elastic.co/t/key-label-for-range-aggregation-split-chart-on-metric-in-kibana-v6-5-4/179149/2 "2019-05-03T13:38:14Z")

</div>

There currently is not support for this in range aggregation, though there is for filter aggregation and you could use a date range there.

If you would like to suggest this feature, you can create a feature request here: [https://github.com/elastic/kibana/issues/new?template=Feature\_request.md](https://github.com/elastic/kibana/issues/new?template=Feature_request.md)

---

<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: [May 31, 2019, 1:38pm UTC](https://discuss.elastic.co/t/key-label-for-range-aggregation-split-chart-on-metric-in-kibana-v6-5-4/179149/3 "2019-05-31T13:38:16Z")

</div>

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