# "other\_bucket\_key" for bar charts

**URL:** https://discuss.elastic.co/t/other-bucket-key-for-bar-charts/141950
**Category:** Kibana
**Created:** [July 27, 2018, 1:43pm UTC](https://discuss.elastic.co/t/other-bucket-key-for-bar-charts/141950 "2018-07-27T13:43:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![emarin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emarin/32/45519_2.png) [@emarin](https://discuss.elastic.co/u/emarin)
#### Post date: [July 27, 2018, 1:43pm UTC](https://discuss.elastic.co/t/other-bucket-key-for-bar-charts/141950/1 "2018-07-27T13:43:59Z")

</div>

Hi there,  
I am using Kibana 6.2.4.

For pie charts the bucket defined as json as follows works like a charm:  
{"other\_bucket\_key": "Failure"}

I haven't been able to do the same for bar charts, although I don't understand why this wouldn't work. Am I right or is there a different way to proceed when it comes to bar charts ?

Thanks !

---

<div class="post-metadata">

### Author: ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)
#### Post date: [July 30, 2018, 4:19pm UTC](https://discuss.elastic.co/t/other-bucket-key-for-bar-charts/141950/2 "2018-07-30T16:19:07Z")

</div>

Hey @emarin, are you trying to set the other bucket label using the "JSON input" in the Visualize editor? Have you tried using the "Label for the other bucket" input instead?

---

<div class="post-metadata">

### Author: ![emarin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emarin/32/45519_2.png) [@emarin](https://discuss.elastic.co/u/emarin)
#### Post date: [July 31, 2018, 9:20am UTC](https://discuss.elastic.co/t/other-bucket-key-for-bar-charts/141950/3 "2018-07-31T09:20:14Z")

</div>

Hi @Brandon_Kobel and thanks for your answer.  
I am indeed using the "JSON input" in the visualize editor, but I don't know what "Label for the other bucket is refferring to", is it some area I should see in the editor ?

The vizualisation I am using is a bar chart, using split series with Filters.

Thanks !

Etienne

---

<div class="post-metadata">

### Author: ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)
#### Post date: [July 31, 2018, 10:25am UTC](https://discuss.elastic.co/t/other-bucket-key-for-bar-charts/141950/4 "2018-07-31T10:25:47Z")

</div>

Hey @emarin, if you're using a "terms aggregation" you can choose the following option via the editor, but it's not available for the filters aggregation:

![02%20AM](https://us1.discourse-cdn.com/elastic/original/3X/8/f/8f4165add7a636eea70267cfb61181769cfbb802.png)

It appears that the bar chart lets you put in the `{ "other_bucket_key": "other_messages" }` in the JSON input and it's using it properly to create the request to Elasticsearch, but it's not displaying the bucket on the graph. I'd recommend opening up an issue [here](https://github.com/elastic/kibana/issues/new/choose) for using this with the filters aggregation.

---

<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: [August 28, 2018, 10:27am UTC](https://discuss.elastic.co/t/other-bucket-key-for-bar-charts/141950/5 "2018-08-28T10:27:36Z")

</div>

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