# Easy chart scripting

**URL:** <https://forum.inductiveautomation.com/t/easy-chart-scripting/22152>\
**Category:** Ignition\
**Created:** [January 28, 2019, 12:28pm UTC](https://forum.inductiveautomation.com/t/easy-chart-scripting/22152 "2019-01-28T12:28:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![d.iannozzi](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@d.iannozzi](https://forum.inductiveautomation.com/u/d.iannozzi)\
**Post date:** [January 28, 2019, 12:28pm UTC](https://forum.inductiveautomation.com/t/easy-chart-scripting/22152/1 "2019-01-28T12:28:58Z")

</div>

Hi Guys!

how do I set the lower and upper limits of the Y-Axis of an easy chart through scripting ?

thanks and regards  
Dominic

---

<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:** [January 28, 2019, 1:44pm UTC](https://forum.inductiveautomation.com/t/easy-chart-scripting/22152/2 "2019-01-28T13:44:07Z")

</div>

Two possibilities:

- Update the `axes` property for the appropriate ranges, affecting all pens for that axis, or
- Dig into [JFreeChart](http://www.jfree.org/jfreechart/api/javadoc/)’s [ValueAxis](http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/axis/ValueAxis.html) types in the configureChart extension function to set limits on a pen-by-pen basis. You would have to interate through the charts datasets (jfreechart datasets – different animal from Ignition datasets) and the pens within them.
