# Set Upper Bound on Easy Chart

**URL:** <https://forum.inductiveautomation.com/t/set-upper-bound-on-easy-chart/13978>\
**Category:** Ignition\
**Created:** [April 4, 2017, 10:06am UTC](https://forum.inductiveautomation.com/t/set-upper-bound-on-easy-chart/13978 "2017-04-04T10:06:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott2](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@scott2](https://forum.inductiveautomation.com/u/scott2)\
**Post date:** [April 4, 2017, 10:06am UTC](https://forum.inductiveautomation.com/t/set-upper-bound-on-easy-chart/13978/1 "2017-04-04T10:06:55Z")

</div>

Hi,

I want to set the Upper Bound field of an Easy Chart to the EngHi metadata of the Custom property which is a UDT.

This code works from a button, but I want it to be done automatically once the binding has completed.

```auto
tp = event.source.parent.Analog.Meta.TagPath + "/In.EngHigh"
ex = system.tag.read(tp)

# Consolidate changes into a dictionary
updates = {"UPPER_BOUND": ex.value}
  
# Update the Easy Chart
chart = event.source.parent.getComponent("popTrend")
newPens = system.dataset.updateRow(chart.axes, 0, updates)
chart.axes = newPens
```
