# Anonymization - Do not display a bar in a chart if occurence / count below 10

**URL:** <https://discuss.elastic.co/t/anonymization-do-not-display-a-bar-in-a-chart-if-occurence-count-below-10/284730>\
**Category:** Kibana\
**Created:** [September 21, 2021, 1:25pm UTC](https://discuss.elastic.co/t/anonymization-do-not-display-a-bar-in-a-chart-if-occurence-count-below-10/284730 "2021-09-21T13:25:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wgault](https://avatars.discourse-cdn.com/v4/letter/w/df705f/32.png) [@wgault](https://discuss.elastic.co/u/wgault)\
**Post date:** [September 21, 2021, 1:25pm UTC](https://discuss.elastic.co/t/anonymization-do-not-display-a-bar-in-a-chart-if-occurence-count-below-10/284730/1 "2021-09-21T13:25:22Z")

</div>

Hello,

I wish to create some anonymized dashboard. This requires to have a minimum amount of occurence/count per category / bar in a chart.

In this case, if the count is below 10, then we would have two options :  
1 - this particular bar should not be displayed  
2 - this category would be displayed but with a mention like "10 or less" (most preferred option)  
3 - the whole graphic should not be displayed (less preferred option)

I am currently using Kibana 7.6.0 but I could move up to a higher version if needed. !

 ![Capture d’écran 2021-09-21 152912](https://us1.discourse-cdn.com/elastic/original/3X/1/e/1ef9dee363ee654907dabbae4d9bdb08095bc7f6.png)

For example, on this visualization, the 3 last bars have 8 or less counts, so I wish to remove them from the visualization.

Could anyone please help me with this ?

Thank you !

---

<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:** [September 22, 2021, 12:37am UTC](https://discuss.elastic.co/t/anonymization-do-not-display-a-bar-in-a-chart-if-occurence-count-below-10/284730/2 "2021-09-22T00:37:12Z")

</div>

As far as I can see this it not natively available in Kibana at this stage. There's a feature request for it here [https://github.com/elastic/kibana/issues/17544](https://github.com/elastic/kibana/issues/17544).

---

<div class="post-metadata">

**Author:** ![wgault](https://avatars.discourse-cdn.com/v4/letter/w/df705f/32.png) [@wgault](https://discuss.elastic.co/u/wgault)\
**Post date:** [September 29, 2021, 3:48pm UTC](https://discuss.elastic.co/t/anonymization-do-not-display-a-bar-in-a-chart-if-occurence-count-below-10/284730/3 "2021-09-29T15:48:59Z")

</div>

Hello everyone,

Thank you Warkolm.

A very kind Kibana expert gave me this suggestion and as far as I can see, it works to filter the bars which have less than 10 counts :

{"min\_doc\_count":10} in the JSON input field of the Bucket \> Advanced section

 ![min bucket](https://us1.discourse-cdn.com/elastic/original/3X/2/3/239d836c2006e2ebcdb622c3eabe81b72e663abd.png)

---

<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:** [September 29, 2021, 9:30pm UTC](https://discuss.elastic.co/t/anonymization-do-not-display-a-bar-in-a-chart-if-occurence-count-below-10/284730/4 "2021-09-29T21:30:28Z")

</div>

Thanks heaps for adding that to the topic!

---

<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:** [October 27, 2021, 9:30pm UTC](https://discuss.elastic.co/t/anonymization-do-not-display-a-bar-in-a-chart-if-occurence-count-below-10/284730/5 "2021-10-27T21:30:36Z")

</div>

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