# Infinite extent for field "count": \[Infinity, -Infinity\]

**URL:** <https://discuss.elastic.co/t/infinite-extent-for-field-count-infinity-infinity/276333>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [June 18, 2021, 4:50am UTC](https://discuss.elastic.co/t/infinite-extent-for-field-count-infinity-infinity/276333 "2021-06-18T04:50:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nisha2297](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@Nisha2297](https://discuss.elastic.co/u/Nisha2297)\
**Post date:** [June 18, 2021, 4:50am UTC](https://discuss.elastic.co/t/infinite-extent-for-field-count-infinity-infinity/276333/1 "2021-06-18T04:50:24Z")

</div>

I am building a bar chart in Vega visualization and it is getting created as expected. But when I change the time range or put some filter for which I don't have data, then ideally the chart should be blank and display nothing, but in my case it is showing the below error:  
_Infinite extent for field "count": [Infinity, -Infinity]_  
This may be because of the _Transform_ that I'm using in my code. Can you help me resolving this issue or let me know if I can replace Transform with some other property.

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [June 21, 2021, 12:28pm UTC](https://discuss.elastic.co/t/infinite-extent-for-field-count-infinity-infinity/276333/2 "2021-06-21T12:28:40Z")

</div>

What transform are you using?

I know some support default values or some basic conditional if statements that you can use to check values.

---

<div class="post-metadata">

**Author:** ![Nisha2297](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@Nisha2297](https://discuss.elastic.co/u/Nisha2297)\
**Post date:** [June 21, 2021, 2:26pm UTC](https://discuss.elastic.co/t/infinite-extent-for-field-count-infinity-infinity/276333/3 "2021-06-21T14:26:55Z")

</div>

Hi @aaron-nimocks ,  
Thanks for your reply!  
I finally got the configuration to hide the warnings if we don't have ay data. Below is the syntax that I used.

```
 config: {​​​​​
kibana: {​​​​​
  hideWarnings: true
  }​​​​​
  }​​​​​
```

---

<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:** [July 19, 2021, 2:27pm UTC](https://discuss.elastic.co/t/infinite-extent-for-field-count-infinity-infinity/276333/4 "2021-07-19T14:27:48Z")

</div>

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