# How can I apply a threshold for a bar graph in Kibana?

**URL:** <https://discuss.elastic.co/t/how-can-i-apply-a-threshold-for-a-bar-graph-in-kibana/70638>\
**Category:** Kibana\
**Created:** [January 5, 2017, 6:19am UTC](https://discuss.elastic.co/t/how-can-i-apply-a-threshold-for-a-bar-graph-in-kibana/70638 "2017-01-05T06:19:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kulasangar\_Gowrisang](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@Kulasangar\_Gowrisang](https://discuss.elastic.co/u/Kulasangar_Gowrisang)\
**Post date:** [January 5, 2017, 6:19am UTC](https://discuss.elastic.co/t/how-can-i-apply-a-threshold-for-a-bar-graph-in-kibana/70638/1 "2017-01-05T06:19:00Z")

</div>

I've gone through this particular [ticket](https://github.com/elastic/kibana/issues/5037), which pretty much talks about adding a threshold line, to a `line graph`.

In my case, I'm having a `bar graph` like [this](http://imgur.com/a/qGxAl) where I need to have a threshold, lets say for example in the above graph itself I should be able to show the difference in each and every bar.

In other words as per the above graph, it's displaying the `sum` of `chargeamount` according to the `filter` I've given. What I need to do is, to show the difference using a color in the same bar itself if the `sum` of `chargeamount` is greater than 50,000.

So is there a way that I can show the bar with the default color for the filter (ie: the ones which are less than 50,000) and the rest should be shown in a different color conveying the threshold. So that the user can see the difference in the bar itself, whether they've achieved more than 50k.

Is this possible using a `bar graph` or should I be get going with some other graph?

**EDIT** :

Just noticed that this [issue](https://github.com/elastic/kibana/issues/4482) is still open. Any enhancement over that, or any work around available atm?

Any help could be appreciated. 🙂

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 5, 2017, 6:25am UTC](https://discuss.elastic.co/t/how-can-i-apply-a-threshold-for-a-bar-graph-in-kibana/70638/2 "2017-01-05T06:25:47Z")

</div>

You can do this with a timelion viz, but not a standard KB viz.

---

<div class="post-metadata">

**Author:** ![Kulasangar\_Gowrisang](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@Kulasangar\_Gowrisang](https://discuss.elastic.co/u/Kulasangar_Gowrisang)\
**Post date:** [January 5, 2017, 6:27am UTC](https://discuss.elastic.co/t/how-can-i-apply-a-threshold-for-a-bar-graph-in-kibana/70638/3 "2017-01-05T06:27:22Z")

</div>

@warkolm Oh right, I'll give it a try using `timelion` then.

But then for the moment, it isn't achievable using the `bar`?

Thanks for the quick response!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 5, 2017, 7:32am UTC](https://discuss.elastic.co/t/how-can-i-apply-a-threshold-for-a-bar-graph-in-kibana/70638/4 "2017-01-05T07:32:18Z")

</div>

It is not achievable with the default KB bar char.

---

<div class="post-metadata">

**Author:** ![Kulasangar\_Gowrisang](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@Kulasangar\_Gowrisang](https://discuss.elastic.co/u/Kulasangar_Gowrisang)\
**Post date:** [January 5, 2017, 8:41am UTC](https://discuss.elastic.co/t/how-can-i-apply-a-threshold-for-a-bar-graph-in-kibana/70638/5 "2017-01-05T08:41:52Z")

</div>

Oh ok, thank you! I'll have to look another way of showing it then.

---

<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:** [February 2, 2017, 8:42am UTC](https://discuss.elastic.co/t/how-can-i-apply-a-threshold-for-a-bar-graph-in-kibana/70638/6 "2017-02-02T08:42:20Z")

</div>

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