# PowerChart refreshRate binding

**URL:** <https://forum.inductiveautomation.com/t/powerchart-refreshrate-binding/80826>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 22, 2023, 10:19pm UTC](https://forum.inductiveautomation.com/t/powerchart-refreshrate-binding/80826 "2023-10-22T22:19:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sala\_Tiemann](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@Sala\_Tiemann](https://forum.inductiveautomation.com/u/Sala_Tiemann)\
**Post date:** [October 22, 2023, 10:19pm UTC](https://forum.inductiveautomation.com/t/powerchart-refreshrate-binding/80826/1 "2023-10-22T22:19:22Z")

</div>

I'm trying to do a simple binding on the `refreshRate` property on a PowerChart to calculate my preferred refresh rate, while also trying to set it to 0 if a custom property `refresh` is equal to 0. I've attached an image of the binding script and the live values -- I can only describe the binding as completely ignoring the `refresh` property and setting `refreshRate` equal to a nonzero value even when `refresh` is 0, and I can't figure out why the binding is not functioning as expected. Could there be something I'm missing?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/5/35c59474bb38c245d8e04965be41cfc48655252b.png)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 23, 2023, 2:39am UTC](https://forum.inductiveautomation.com/t/powerchart-refreshrate-binding/80826/2 "2023-10-23T02:39:54Z")

</div>

The bit of your code that I tried works for me.  
(Tip: post the \</\>formatted code as well so that we don't have to type it all out to try it.)

Occassionally components get garbled internally. Try creating a second one and paste your code in.

---

<div class="post-metadata">

**Author:** ![Sala\_Tiemann](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@Sala\_Tiemann](https://forum.inductiveautomation.com/u/Sala_Tiemann)\
**Post date:** [October 23, 2023, 6:19pm UTC](https://forum.inductiveautomation.com/t/powerchart-refreshrate-binding/80826/3 "2023-10-23T18:19:34Z")

</div>

Thanks for your message. I just found a vestigial script that was writing to refreshRate and it fixed the issue. Thanks again!
