# Change easy chart axis property in script

**URL:** <https://forum.inductiveautomation.com/t/change-easy-chart-axis-property-in-script/78462>\
**Category:** Ignition\
**Created:** [August 28, 2023, 5:25pm UTC](https://forum.inductiveautomation.com/t/change-easy-chart-axis-property-in-script/78462 "2023-08-28T17:25:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bwhite](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bwhite/32/7112_2.png) [@bwhite](https://forum.inductiveautomation.com/u/bwhite)\
**Post date:** [August 28, 2023, 5:25pm UTC](https://forum.inductiveautomation.com/t/change-easy-chart-axis-property-in-script/78462/1 "2023-08-28T17:25:26Z")

</div>

I need to change the axis property 'AutoRange' in a script on a button. Are the axes settings in the Easy Chart Customizer available in script? If so, what is the syntax?

---

<div class="post-metadata">

**Author:** ![zbinder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zbinder/32/28918_2.png) [@zbinder](https://forum.inductiveautomation.com/u/zbinder)\
**Post date:** [August 28, 2023, 8:05pm UTC](https://forum.inductiveautomation.com/t/change-easy-chart-axis-property-in-script/78462/2 "2023-08-28T20:05:36Z")

</div>

Yes, but it's part of a dataset stored as ".axes", which can contain multiple axes. You could write to the dataset in a script, but you may have an easier time using a Cell Update binding on the Axes dataset and linking the AUTO\_RANGE cell to a custom Boolean that you create on the page.

---

<div class="post-metadata">

**Author:** ![bwhite](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bwhite/32/7112_2.png) [@bwhite](https://forum.inductiveautomation.com/u/bwhite)\
**Post date:** [August 28, 2023, 8:16pm UTC](https://forum.inductiveautomation.com/t/change-easy-chart-axis-property-in-script/78462/3 "2023-08-28T20:16:04Z")

</div>

That worked perfectly! Thank you

---

<div class="post-metadata">

**Author:** ![filipg](https://avatars.discourse-cdn.com/v4/letter/f/a88e4f/32.png) [@filipg](https://forum.inductiveautomation.com/u/filipg)\
**Post date:** [March 10, 2024, 2:25am UTC](https://forum.inductiveautomation.com/t/change-easy-chart-axis-property-in-script/78462/4 "2024-03-10T02:25:29Z")

</div>

> [@zbinder](#):
>
> Cell Update binding on the Axes dataset

I created a memory tag "[client]UI/USERS/Sensors/ezchart\_auto\_range"

Under "Chart Configuration" for EZChart, I went to Axes and clicked on "Dataset Editor", copied to clipboard, and modified it (per [this posting](https://forum.inductiveautomation.com/t/indirectly-addressing-upper-bound-for-easy-chart-axes/33096)) to use my tag instead of a fixed value.

```auto
"#NAMES"
"NAME","LABEL","TYPE","LABEL_COLOR","TICK_LABEL_COLOR","TICK_MARK_COLOR","POSITION","INVERT","AUTO_RANGE","AUTO_RANGE_INCL_ZERO","AUTO_RANGE_MARGIN","LOWER_BOUND","UPPER_BOUND","AUTO_TICK_UNITS","TICK_UNIT","GRID_UNIT","NUMBER_FORMAT","LOG_LABEL_STYLE","SYMBOL_STRING","GRID_BANDS_VISIBLE","GRID_BAND_COLOR","GRID_BAND_ALTERNATE_COLOR"
"#TYPES"
"str","str","str","clr","clr","clr","I","B","B","B","D","D","D","B","D","D","str","str","str","B","clr","clr"
"#ROWS","1"
"MoirePSI","PSI","Numeric","color(0,0,0,255)","color(0,0,0,255)","color(0,0,0,255)","0","false","[client]UI/USERS/Sensors/ezchart_auto_range","false","0.05","-16.0","16.0","false","1.0","10.0","","normal","","false","color(232,234,232,128)","color(0,0,0,0)"

```

However, when I try to paste this back into Designer, I get following error:

```auto
ClassCastException: Error trying to coerce '[client]ui/users/sensors/ezchart_auto_range' to a number.

```

I tried boolean and integer types for my memory tag and {} around its reference in dataset editor, but error is always the same. I'm too tired (on daily basis) to try [doing much scripting](https://forum.inductiveautomation.com/t/cell-binding-using-indirect-tag-change-dataset-by-scripting/20115/5), so looking for simpler way.

I'm using Ignition v8.1.35 (b2023120517)

---

<div class="post-metadata">

**Author:** ![zbinder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zbinder/32/28918_2.png) [@zbinder](https://forum.inductiveautomation.com/u/zbinder)\
**Post date:** [March 11, 2024, 2:11pm UTC](https://forum.inductiveautomation.com/t/change-easy-chart-axis-property-in-script/78462/5 "2024-03-11T14:11:31Z")

</div>

Could you post a screenshot or two to illustrate what you're describing, including what you're pasting back in to Designer and where? Are you looking for help implementing a Cell Update binding or something different? The quoted text makes it sound like you want a Cell Update binding but the rest of the post doesn't seem to describe that.

---

<div class="post-metadata">

**Author:** ![filipg](https://avatars.discourse-cdn.com/v4/letter/f/a88e4f/32.png) [@filipg](https://forum.inductiveautomation.com/u/filipg)\
**Post date:** [March 11, 2024, 8:22pm UTC](https://forum.inductiveautomation.com/t/change-easy-chart-axis-property-in-script/78462/6 "2024-03-11T20:22:06Z")

</div>

It's likely I mixed these up, sorry. You asking this question made me question my terminology & after some more searching of Inductive University, I found a video on [Cell Update Binding](https://inductiveuniversity.com/video/cell-update-binding/8.1?r=%2Fvideo%2Fsearch%2F%3Fq%3DChart%20Configuration%26checked_topics%3D) which is all I needed!

In case I ever need to do this, but with an indirect tag, then above won't work and I will need to first create a Custom Property with indirect tag, then use that Custom Property inside Cell Update Binding.

I think Forums are great, but not as a first foray into a topic; almost invariably forum is an extension or deeper dive into what's been explained generically elsewhere. I routinely forget what/how I did everything in ignition (because I modify the project so infrequently). Forums are a **bad place** to search for generic how-to information 🙂

[ignore rest]  
What had been doing & trying to explain was needlessly complicated:  
In Designer, lower left Axes:  
"

 ![designer Axes Configuration0](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/a/8a4adeee3738d84e72e35d64135ccfdaa06fc421.gif)  
I click Dataset editor:  
 ![designer Axes Configuration1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/c/bc920ceb42a3877b2b52ea74a1de41435501a5c5.gif)  
Copy dataset to clipboard and modify to place tag references (I tried with {} and without):  
 ![designer Axes Configuration4](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/b/cbc2e528f9c9861e5bd33eed651a5798b2d1a82c.gif)  
When pasting same back in, I get error:  
 ![designer Axes Configuration6](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/1/11af4218ff9ccd23a9fadf903d87953e076c5e4c.gif)

---

<div class="post-metadata">

**Author:** ![zbinder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zbinder/32/28918_2.png) [@zbinder](https://forum.inductiveautomation.com/u/zbinder)\
**Post date:** [March 11, 2024, 10:11pm UTC](https://forum.inductiveautomation.com/t/change-easy-chart-axis-property-in-script/78462/7 "2024-03-11T22:11:56Z")

</div>

Thank you, makes more sense now. That's not surprising though, I don't think it's possible to do a binding within the dataset editor. Sounds like you got things working though?
