# How to apply filter using JSON input for area chart

**URL:** <https://discuss.elastic.co/t/how-to-apply-filter-using-json-input-for-area-chart/93253>\
**Category:** Kibana\
**Created:** [July 15, 2017, 6:49am UTC](https://discuss.elastic.co/t/how-to-apply-filter-using-json-input-for-area-chart/93253 "2017-07-15T06:49:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![patil-akshay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patil-akshay/32/15295_2.png) [@patil-akshay](https://discuss.elastic.co/u/patil-akshay)\
**Post date:** [July 15, 2017, 6:49am UTC](https://discuss.elastic.co/t/how-to-apply-filter-using-json-input-for-area-chart/93253/1 "2017-07-15T06:49:01Z")

</div>

I want filter on status field(status=open) in area chat please suggest an json input code for the same

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [July 17, 2017, 2:09pm UTC](https://discuss.elastic.co/t/how-to-apply-filter-using-json-input-for-area-chart/93253/2 "2017-07-17T14:09:46Z")

</div>

Why do you want to use the json input for this instead of the query bar? `staus:open`

What version of Kibana are you using?

Thanks,  
Lee

---

<div class="post-metadata">

**Author:** ![patil-akshay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patil-akshay/32/15295_2.png) [@patil-akshay](https://discuss.elastic.co/u/patil-akshay)\
**Post date:** [July 18, 2017, 5:26am UTC](https://discuss.elastic.co/t/how-to-apply-filter-using-json-input-for-area-chart/93253/3 "2017-07-18T05:26:33Z")

</div>

I am using kibana 5.3.3 I tried using Status: Open its works and splitting the chart but when I click on chart area which has status:open its not filtering the dashboard

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [July 18, 2017, 3:59pm UTC](https://discuss.elastic.co/t/how-to-apply-filter-using-json-input-for-area-chart/93253/4 "2017-07-18T15:59:39Z")

</div>

Filtering by clicking only works in certain charts but you should always be able to use the controls in the legend like I show in this gif.

First I click on a value in the legend. This opens the color panel and a `+` and `-` magnifying glass. If I click on the `+` icon it adds a filter for that `field:value`. I can toggle the filter. I can disable/enable the filter. And then I delete it.  
Then I also moused-over the value in the Pie Chart and clicked on it and added 2 filters. I can do the same actions with those.

 ![](https://us1.discourse-cdn.com/elastic/original/3X/9/7/974595ffe3cdcd29c96d38b66ad8f7a660bb4156.gif)

---

<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 15, 2017, 4:00pm UTC](https://discuss.elastic.co/t/how-to-apply-filter-using-json-input-for-area-chart/93253/5 "2017-08-15T16:00:09Z")

</div>

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