# How to hide error message for graphs

**URL:** <https://discuss.elastic.co/t/how-to-hide-error-message-for-graphs/259554>\
**Category:** Kibana\
**Created:** [December 24, 2020, 6:49am UTC](https://discuss.elastic.co/t/how-to-hide-error-message-for-graphs/259554 "2020-12-24T06:49:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pranusha119](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@Pranusha119](https://discuss.elastic.co/u/Pranusha119)\
**Post date:** [December 24, 2020, 6:49am UTC](https://discuss.elastic.co/t/how-to-hide-error-message-for-graphs/259554/1 "2020-12-24T06:49:10Z")

</div>

```auto
{
  "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
  "description": "A simple bar chart with embedded data.",
  "data": {
    "values": [
      {"a": "A", "b": 28}, {"a": "B", "b": 55}, {"a": "C", "b": 43},
      {"a": "D", "b": 91}, {"a": "E", "b": 81}, {"a": "F", "b": 53},
      {"a": "G", "b": 19}, {"a": "H", "b": 87}, {"a": "I", "b": 52}
    ]
  },
  "transform":[{"filter": "datum.a == 'N'"}]
  "mark": "bar",
  "encoding": {
    "x": {"field": "a", "type": "nominal", "axis": {"labelAngle": 0}},
    "y": {"field": "b", "type": "quantitative"}
  }
}

```

Output :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/c/5c3022c0711e6bef8759d94e8b9ab5d6d9de4aba.png)

Is there any way to hide this error message?

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [January 11, 2021, 10:08am UTC](https://discuss.elastic.co/t/how-to-hide-error-message-for-graphs/259554/2 "2021-01-11T10:08:14Z")

</div>

Hi, the warning message is actually displayed directly by Vega and we don't have a way in Kibana to disable it.  
It logically describe that there is an issue with your current vega spec: the Y channel need an extent to render bars, with the filter applied you don't have data and the extent is basically [Infinity, -Infinity]  
I'm checking if this issue will be solved in 7.11 or in a 7.10 patch release, but it depends on vega if this warning can be dismissed or removed completely. Testing it on the latest vega-lite version doesn't seems to result in a warning message, so probably a library update can fix this in a new Kibana release

> **[Editor/IDE for Vega and Vega-Lite](https://vega.github.io/editor/#/url/vega-lite/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykBaADZ04JACyUAVhDYA7EABoQAEzjQATjRyZ289AEEABBBoIcguIaZJ1h2DcyGA7nRiHETOMtXLDypJhUiioBKKigxEiCDGpoANqgYSD6wUxoAEwAHAC+ColoIABCqWgArKW5+egAwiWoYgDMlSBJACJ1AJwAjM1JAKJ1mT15LQUAYnWlTSNJAOJ1XR29BQASgwDsy+gAkpPp2QC6uSCY6kiyEABmbOoI8aCXNIKYcOoF-pgMCJRIhgC8f0MAHIAHJAkCHJTIdQAawK1jeSjgsigbGUNFkZDQoAAHtiQI84IJlAUUEpMABPHBwAqyNgIDFRYJIHE0CD4wRITyCfSYixoAAM2WOFPxhOJ8OClOpBQAjgxzjpAjpSBDhUA)**
>
> The Vega editor is a web application for authoring and testing Vega and Vega-Lite visualizations. It includes a number of example specifications that showcase both the visual encodings and interaction techniques.

---

<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 8, 2021, 10:08am UTC](https://discuss.elastic.co/t/how-to-hide-error-message-for-graphs/259554/3 "2021-02-08T10:08:26Z")

</div>

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