# Basic Gauge chart value resets to default value (0%) on window resize and zoom

**URL:** <https://community.appfarm.io/t/basic-gauge-chart-value-resets-to-default-value-0-on-window-resize-and-zoom/1098>\
**Category:** Bug reports\
**Tags:** ui\
**Created:** [March 7, 2024, 9:37pm UTC](https://community.appfarm.io/t/basic-gauge-chart-value-resets-to-default-value-0-on-window-resize-and-zoom/1098 "2024-03-07T21:37:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaspar](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kaspar/32/3073_2.png) [@Kaspar](https://community.appfarm.io/u/Kaspar)\
**Post date:** [March 7, 2024, 9:37pm UTC](https://community.appfarm.io/t/basic-gauge-chart-value-resets-to-default-value-0-on-window-resize-and-zoom/1098/1 "2024-03-07T21:37:59Z")

</div>

Hi,  
I’ve noticed a bug with the Basic Gauge chart component. When changing the window size and when zooming in/out, the basic gauge chart value are set to the default value/0%. It doesn’t change back unless I force the Value property to reset or set a new value, refresh the page or navigate between views.

---

<div class="post-metadata">

**Author:** ![isabelslorer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/isabelslorer/32/856_2.png) [@isabelslorer](https://community.appfarm.io/u/isabelslorer)\
**Post date:** [March 8, 2024, 8:26am UTC](https://community.appfarm.io/t/basic-gauge-chart-value-resets-to-default-value-0-on-window-resize-and-zoom/1098/2 "2024-03-08T08:26:18Z")

</div>

Hi,

That’s interesting! I have not managed to replicate this.

Can you provide some more details of the setup?

---

<div class="post-metadata">

**Author:** ![Kaspar](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kaspar/32/3073_2.png) [@Kaspar](https://community.appfarm.io/u/Kaspar)\
**Post date:** [March 8, 2024, 5:08pm UTC](https://community.appfarm.io/t/basic-gauge-chart-value-resets-to-default-value-0-on-window-resize-and-zoom/1098/3 "2024-03-08T17:08:10Z")

</div>

Hi @isabelslorer

Screenshot of the chart’s setup below:

 ![Screenshot 2024-03-08 at 17.52.57](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/f/fe32edf29efdacb762262c940f119291cc10718e.png)

In the appfarm debugger, both app variables that controls the value and value label remains the same on window resize and zoom but the graph sets both the value label and value to 0% (see recording below) even though the min value is set to 1.

---

<div class="post-metadata">

**Author:** ![isabelslorer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/isabelslorer/32/856_2.png) [@isabelslorer](https://community.appfarm.io/u/isabelslorer)\
**Post date:** [March 14, 2024, 7:47am UTC](https://community.appfarm.io/t/basic-gauge-chart-value-resets-to-default-value-0-on-window-resize-and-zoom/1098/4 "2024-03-14T07:47:07Z")

</div>

Hi Kaspar,

This is very useful (I tested the advanced gauge chart). Thank you for pointing it out!

I will register a challenge on this.
