# ConfigureChart Extension Function Trigger

**URL:** <https://forum.inductiveautomation.com/t/configurechart-extension-function-trigger/30713>\
**Category:** Ignition\
**Created:** [December 13, 2019, 9:41pm UTC](https://forum.inductiveautomation.com/t/configurechart-extension-function-trigger/30713 "2019-12-13T21:41:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjames](https://avatars.discourse-cdn.com/v4/letter/r/a88e4f/32.png) [@rjames](https://forum.inductiveautomation.com/u/rjames)\
**Post date:** [December 13, 2019, 9:41pm UTC](https://forum.inductiveautomation.com/t/configurechart-extension-function-trigger/30713/1 "2019-12-13T21:41:57Z")

</div>

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?

---

<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:** [December 14, 2019, 12:43pm UTC](https://forum.inductiveautomation.com/t/configurechart-extension-function-trigger/30713/2 "2019-12-14T12:43:00Z")

</div>

The configureChart function is not triggered by data-only changes in the Classic Chart. You must change a plot background or other visual property. However, be aware that until recently, the Classic Chart would leak a chunk of memory every time configureChart was called.

I haven’t looked close lately, but I would endeavour to replace the axis range object with one that computes the range from the data on the fly.

---

<div class="post-metadata">

**Author:** ![rjames](https://avatars.discourse-cdn.com/v4/letter/r/a88e4f/32.png) [@rjames](https://forum.inductiveautomation.com/u/rjames)\
**Post date:** [December 18, 2019, 5:27pm UTC](https://forum.inductiveautomation.com/t/configurechart-extension-function-trigger/30713/3 "2019-12-18T17:27:39Z")

</div>

I changed the chart plotBackground using a propertyChange extension function in a Numeric Text Field displaying the value the chart’s Y axis is based on. The configureChart function did not run.

I can run the entire script in the Numeric Text Field’s propertyChange extension function. How do I reference the “Chart” object that is exposed in the configureChart function?

---

<div class="post-metadata">

**Author:** ![rjames](https://avatars.discourse-cdn.com/v4/letter/r/a88e4f/32.png) [@rjames](https://forum.inductiveautomation.com/u/rjames)\
**Post date:** [January 3, 2020, 4:00pm UTC](https://forum.inductiveautomation.com/t/configurechart-extension-function-trigger/30713/4 "2020-01-03T16:00:30Z")

</div>

I was mistaken. Writing a value to the chart’s plotBackground DOES trigger configureChart. In fact, the plotBackground value doesn’t have to be different than the current value.

---

<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:30pm UTC](https://forum.inductiveautomation.com/t/configurechart-extension-function-trigger/30713/5 "2020-03-28T18:30:21Z")

</div>

Follow-up: The memory leak triggered by the Classic Chart update (anything that would trigger configureChart) was fixed in v8.0.6 but hasn’t yet made it into any version of v7.9. v7.9.13 was released shortly after v8.0.6, but this fix apparently did not make the cut. v7.9.14 will likely have it, and is expected in late April.
