# Refresh my chart

**URL:** <https://forum.inductiveautomation.com/t/refresh-my-chart/33501>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [March 28, 2020, 5:27pm UTC](https://forum.inductiveautomation.com/t/refresh-my-chart/33501 "2020-03-28T17:27:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodolfobravogarcia](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rodolfobravogarcia/32/14082_2.png) [@rodolfobravogarcia](https://forum.inductiveautomation.com/u/rodolfobravogarcia)\
**Post date:** [March 28, 2020, 5:27pm UTC](https://forum.inductiveautomation.com/t/refresh-my-chart/33501/1 "2020-03-28T17:27:02Z")

</div>

> [@Refreshing Classic Chart](http://forum.inductiveautomation.com/t/refreshing-classic-chart/17421):
>
> How do we refresh the classic chart? I need to re-execute the “configureChart” extension function, or delay the first time that script is run.

Hi everyone  
I am trying to refresh the extension function of my chart I read this solution but I do not know where it put the script if in the chart configuration or in the root container, I would be very grateful if someone has already had this problem and how do I solve it or if is there another way to refresh the chart  
I would greatly appreciate any contribution

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 28, 2020, 6:35pm UTC](https://forum.inductiveautomation.com/t/refresh-my-chart/33501/2 "2020-03-28T18:35:10Z")

</div>

You put the trigger operations in a propertyChange event or wherever else you have the change happening (or button press or whatever) that is the reason you want the chart to update. That's up to you. The trick is to change something on the Classic Chart that fires its internal "start over" event--just updating the plot data isn't enough. As noted in this thread, simply assigning the same value to the plot background is enough:

> [@ConfigureChart Extension Function Trigger](http://forum.inductiveautomation.com/t/configurechart-extension-function-trigger/30713):
>
> I am dynamically changing the Y axis range of my chart in the ConfigureChart extension function. The range is based on a tag. However, the function does not execute when the tag changes even though the chart dataset is changing regularly. Any thoughts?

However, beware of the memory leak. Fixed in v8.0.6, but not yet fixed in v7.9.x.

---

<div class="post-metadata">

**Author:** ![rodolfobravogarcia](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rodolfobravogarcia/32/14082_2.png) [@rodolfobravogarcia](https://forum.inductiveautomation.com/u/rodolfobravogarcia)\
**Post date:** [March 29, 2020, 4:38am UTC](https://forum.inductiveautomation.com/t/refresh-my-chart/33501/3 "2020-03-29T04:38:43Z")

</div>

Thank you very much engineer Phil  
it worked what i recommend i put in a propetychange a script using .plotBackground and it worked thanks for your suggestion
