# Binding seems to cause a flash of an error on XY chart when the page is loaded, v8.19

**URL:** <https://forum.inductiveautomation.com/t/binding-seems-to-cause-a-flash-of-an-error-on-xy-chart-when-the-page-is-loaded-v8-19/72254>\
**Category:** Ignition\
**Created:** [April 10, 2023, 12:58pm UTC](https://forum.inductiveautomation.com/t/binding-seems-to-cause-a-flash-of-an-error-on-xy-chart-when-the-page-is-loaded-v8-19/72254 "2023-04-10T12:58:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [April 10, 2023, 12:58pm UTC](https://forum.inductiveautomation.com/t/binding-seems-to-cause-a-flash-of-an-error-on-xy-chart-when-the-page-is-loaded-v8-19/72254/1 "2023-04-10T12:58:10Z")

</div>

v8.19.  
On this XY Chart is a binding to adjust the chart Y range based on the data present.  
The data comes from a query binding with a parameter.

The error is fast, isolated it to the binding.  
What is an alternative?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/b/8b46e3bb791f8e0e5468f9d5dcc276f3fb9d0c02.png)

---

<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:** [April 10, 2023, 1:07pm UTC](https://forum.inductiveautomation.com/t/binding-seems-to-cause-a-flash-of-an-error-on-xy-chart-when-the-page-is-loaded-v8-19/72254/2 "2023-04-10T13:07:07Z")

</div>

Try using and expression structure binding to deliver the data and the data range at the same time--input to the binding would be chart's raw data.

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [April 10, 2023, 1:26pm UTC](https://forum.inductiveautomation.com/t/binding-seems-to-cause-a-flash-of-an-error-on-xy-chart-when-the-page-is-loaded-v8-19/72254/3 "2023-04-10T13:26:25Z")

</div>

How do I get a query into an expression structure?  
-Bind the query somewhere, then select it as a property?

How do get the max of a column in the data using only expression language?

How do I get the data and the range from one expression structure binding to two spots in component?

* * *

In the video for the expression structure, I see that they use a script transform to get one of the expression structure values out on the binding that it is applied to.

```auto
return value["iconPath"] 

```

Shows me how to get a specific value to the bound property.  
I don't know how to perform the other.  
Duplicate bindings, different transforms?

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [April 10, 2023, 2:45pm UTC](https://forum.inductiveautomation.com/t/binding-seems-to-cause-a-flash-of-an-error-on-xy-chart-when-the-page-is-loaded-v8-19/72254/4 "2023-04-10T14:45:22Z")

</div>

Well I didn't figure out how to do the expression structure.

I replaced the property binding on my range max property with a duplicate query binding.  
Then applied my transform script to the query binding instead of the expressing bound property.  
The error is gone, but the DB is queried twice for one table.
