# Is it possible to remove unrelated y-axis value in visualization?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-remove-unrelated-y-axis-value-in-visualization/259818>\
**Category:** Kibana\
**Created:** [December 29, 2020, 6:34pm UTC](https://discuss.elastic.co/t/is-it-possible-to-remove-unrelated-y-axis-value-in-visualization/259818 "2020-12-29T18:34:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhagen92](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jhagen92/32/80458_2.png) [@jhagen92](https://discuss.elastic.co/u/jhagen92)\
**Post date:** [December 29, 2020, 6:34pm UTC](https://discuss.elastic.co/t/is-it-possible-to-remove-unrelated-y-axis-value-in-visualization/259818/1 "2020-12-29T18:34:17Z")

</div>

Hi,

I have a log coming in from different sources with exitCode. I created a heatmap to show how many exitCode happened in specific source.

However, sometimes one of the source doesn't have some of the exitCode, but it still shows in the y-axis in the heatmap. Is there way to not show any y-axis value if the count is 0? Here is my heatmap:

 ![Screen Shot 2020-12-29 at 1.31.34 PM](https://us1.discourse-cdn.com/elastic/original/3X/6/3/63c49f0b9cd24a09548023fe7201e663eb6d5d00.jpeg)

In my heatmap, you can see that psh-app-postprocessor never had INVALID\_ZIP\_FILE\_EXCEPTION, but it still shows in the y-axis...

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [December 30, 2020, 7:01pm UTC](https://discuss.elastic.co/t/is-it-possible-to-remove-unrelated-y-axis-value-in-visualization/259818/3 "2020-12-30T19:01:11Z")

</div>

When sources don't have some of the exit code are they structured the same? If so a filter from the top checking for the existence of exitCode could help.

Alternatively, if you expand the advanced section you can add JSON input to include something like

```auto
{ "min_doc_count": 1 }

```

---

<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:** [January 27, 2021, 7:01pm UTC](https://discuss.elastic.co/t/is-it-possible-to-remove-unrelated-y-axis-value-in-visualization/259818/4 "2021-01-27T19:01:17Z")

</div>

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