# Binding to xTrace Y-value - Time Series or Power Chart

**URL:** <https://forum.inductiveautomation.com/t/binding-to-xtrace-y-value-time-series-or-power-chart/61821>\
**Category:** Ignition\
**Created:** [July 12, 2022, 8:59pm UTC](https://forum.inductiveautomation.com/t/binding-to-xtrace-y-value-time-series-or-power-chart/61821 "2022-07-12T20:59:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monica\_Gangwar](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@Monica\_Gangwar](https://forum.inductiveautomation.com/u/Monica_Gangwar)\
**Post date:** [July 12, 2022, 8:59pm UTC](https://forum.inductiveautomation.com/t/binding-to-xtrace-y-value-time-series-or-power-chart/61821/1 "2022-07-12T20:59:32Z")

</div>

I’ve tried to pull in the associated y-value from an xTrace value on the time series chart and power chart to bind to an indicator (i.e. simple gauge) - have not had any success yet.

Does anyone know of a way to get the y-value’s that are displayed in the infobox on either of these charts?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [July 12, 2022, 10:06pm UTC](https://forum.inductiveautomation.com/t/binding-to-xtrace-y-value-time-series-or-power-chart/61821/2 "2022-07-12T22:06:25Z")

</div>

The TimeSeries component X-axis is (date)time as suggested by its title. The `xTrace.value` property should return the value of the X-axis and since this is a datetime it must return a datetime value.

What were you expecting or hoping for? Were you hoping for the Y-value? I don’t think that’s available. The charts are developed by AMCharts so you might find some documentation on their site. (I couldn’t.)

---

<div class="post-metadata">

**Author:** ![Monica\_Gangwar](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@Monica\_Gangwar](https://forum.inductiveautomation.com/u/Monica_Gangwar)\
**Post date:** [July 13, 2022, 12:56pm UTC](https://forum.inductiveautomation.com/t/binding-to-xtrace-y-value-time-series-or-power-chart/61821/3 "2022-07-13T12:56:06Z")

</div>

Thanks for clarifying! Yes I was hoping to get the Y-value - I’ve revised the original post.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [July 13, 2022, 2:22pm UTC](https://forum.inductiveautomation.com/t/binding-to-xtrace-y-value-time-series-or-power-chart/61821/4 "2022-07-13T14:22:09Z")

</div>

Here is the documentation: [amCharts 4 Documentation](https://www.amcharts.com/docs/v4/)

I’m not sure what version you have, so perhaps yours is different. I am currently on 8.1.14 and when the chart is in X-Trace Mode there is an X-Trace Object added to the Interaction Property. In that object you will find a Values array which has the Y-Value for that X-Trace.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/5/c546e9c84e763da6d51284d9537b5bcb75c8713b.png)

In theory you could bind to that, however, you will need to Coalesce it, because there will absolutely be times when there are no X-Traces on the chart. This is for the power chart, I don’t know about the Timeseries chart.

---

<div class="post-metadata">

**Author:** ![Monica\_Gangwar](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@Monica\_Gangwar](https://forum.inductiveautomation.com/u/Monica_Gangwar)\
**Post date:** [July 13, 2022, 3:29pm UTC](https://forum.inductiveautomation.com/t/binding-to-xtrace-y-value-time-series-or-power-chart/61821/5 "2022-07-13T15:29:43Z")

</div>

Thanks for the response Irose,

I took a look at the values array under X-Trace, it seems to just be a number between 0-1, based on the distance of the x-trace line from the y-axis (0 close to the y-axis, 1 farthest away).
