# TSVB Yaxis min value defaults to zero - Data binding not working with filter

**URL:** https://discuss.elastic.co/t/tsvb-yaxis-min-value-defaults-to-zero-data-binding-not-working-with-filter/212016
**Category:** Kibana
**Created:** [December 16, 2019, 1:51pm UTC](https://discuss.elastic.co/t/tsvb-yaxis-min-value-defaults-to-zero-data-binding-not-working-with-filter/212016 "2019-12-16T13:51:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Paulo64](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paulo64/32/48977_2.png) [@Paulo64](https://discuss.elastic.co/u/Paulo64)
#### Post date: [December 16, 2019, 1:51pm UTC](https://discuss.elastic.co/t/tsvb-yaxis-min-value-defaults-to-zero-data-binding-not-working-with-filter/212016/1 "2019-12-16T13:51:06Z")

</div>

Hello,

In the Time Series Visual Builder in Kibana 7.5, it seems that axis min value automatic scaling is not working when a filter is applied.

Unless set to a specific value, axis min and axis max should automatically set to min and max data + offset so that is "zooms in" on the data, just like this :

 ![Without filter](https://us1.discourse-cdn.com/elastic/original/3X/5/0/502d57a0ef0332944ae4b81f6faf8e76093f4fd8.jpeg)

However, we use these kind of vizualizations inside dashboard with filters on equipment monitored, locations etc.

As soon as a filter is applied, the min value reverts to 0 instead of the min value of the filtered data.  
This is a simple example with a filter applied.

 ![Min scaling data binding](https://us1.discourse-cdn.com/elastic/original/3X/c/c/ccb6b4e352e2c76749fb8ae30eb406ff6b95d3a5.jpeg)

You can see that while the max axis is fine, the min value goes to 0 instead of starting around 1000 ish.

This might not be a big deal, but he leads to situation like this one where the user cannot see changes due to improper automatic scaling for the y min axis.

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/8/1/81c53c6ff3cac610484458888a2089da49cec176.jpeg)

Am I missing something here ? I undertstand that there were some changes regarding TVSB lately ([https://github.com/elastic/kibana/pull/33558](https://github.com/elastic/kibana/pull/33558)). Is there any plan to fix this issue or do you have a workaround to prevent this.

Thank you very much for you help,

Paul

---

<div class="post-metadata">

### Author: ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)
#### Post date: [December 17, 2019, 12:17am UTC](https://discuss.elastic.co/t/tsvb-yaxis-min-value-defaults-to-zero-data-binding-not-working-with-filter/212016/2 "2019-12-17T00:17:46Z")

</div>

Hey @Paulo64, do you mind opening up a [bug issue](https://github.com/elastic/kibana/issues/new?template=Bug_report.md) for this?

---

<div class="post-metadata">

### Author: ![Paulo64](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paulo64/32/48977_2.png) [@Paulo64](https://discuss.elastic.co/u/Paulo64)
#### Post date: [December 17, 2019, 8:17am UTC](https://discuss.elastic.co/t/tsvb-yaxis-min-value-defaults-to-zero-data-binding-not-working-with-filter/212016/4 "2019-12-17T08:17:05Z")

</div>

Thank you Brandon. It's done, here : [https://github.com/elastic/kibana/issues/53257](https://github.com/elastic/kibana/issues/53257)

---

<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 14, 2020, 8:17am UTC](https://discuss.elastic.co/t/tsvb-yaxis-min-value-defaults-to-zero-data-binding-not-working-with-filter/212016/5 "2020-01-14T08:17:12Z")

</div>

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