# XY Chart Question

**URL:** <https://forum.inductiveautomation.com/t/xy-chart-question/108792>\
**Category:** General Discussion\
**Created:** [July 22, 2025, 8:46pm UTC](https://forum.inductiveautomation.com/t/xy-chart-question/108792 "2025-07-22T20:46:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Corey](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@Ryan\_Corey](https://forum.inductiveautomation.com/u/Ryan_Corey)\
**Post date:** [July 22, 2025, 8:46pm UTC](https://forum.inductiveautomation.com/t/xy-chart-question/108792/1 "2025-07-22T20:46:48Z")

</div>

Is there a way to shove the output of path's from my alarm data into the label field at the bottom? I want a label for each alarm type.

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

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

---

<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 22, 2025, 11:22pm UTC](https://forum.inductiveautomation.com/t/xy-chart-question/108792/2 "2025-07-22T23:22:32Z")

</div>

Use labels below the chart?

- Put the alarms structure and binding out on a view custom property.
- Bind the `datasources.Alarms` to that custom property.
- Bind the labels to that custom property.  
This avoids the `getSibling()` syntax which breaks if you move components in or out of containers.

---

<div class="post-metadata">

**Author:** ![Ryan\_Corey](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@Ryan\_Corey](https://forum.inductiveautomation.com/u/Ryan_Corey)\
**Post date:** [July 23, 2025, 5:01pm UTC](https://forum.inductiveautomation.com/t/xy-chart-question/108792/3 "2025-07-23T17:01:15Z")

</div>

I'm confused on how to assign the labels. Under series it looks like it will only let you create one label. If you try and create an array of labels like my example below, it will show each label all on one line. Is there a way I'm not seeing to have a label for each alarm type? Probably just way over thinking this lol.

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

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

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/0/a00fea9c88b597fe3a1469a4f101c46c79c13086.png)

---

<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 24, 2025, 7:44am UTC](https://forum.inductiveautomation.com/t/xy-chart-question/108792/4 "2025-07-24T07:44:04Z")

</div>

Sorry if I wasn't clear. I was suggesting that you use multiple Label components below the chart.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [July 24, 2025, 11:35am UTC](https://forum.inductiveautomation.com/t/xy-chart-question/108792/5 "2025-07-24T11:35:16Z")

</div>

I'm a bit confused, don't you already have those labels on the y axis? Or are you looking for more of a legend key instead? Maybe look at the legend prop to see if it does what you want (it's been a while since I've used the XY)

---

<div class="post-metadata">

**Author:** ![Ryan\_Corey](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@Ryan\_Corey](https://forum.inductiveautomation.com/u/Ryan_Corey)\
**Post date:** [July 24, 2025, 12:19pm UTC](https://forum.inductiveautomation.com/t/xy-chart-question/108792/6 "2025-07-24T12:19:23Z")

</div>

@Transistor  
Thanks. Yea that is looking like the best option. Wasn't sure if there was a way to do it within just the chart properties.

@nminchin  
Yes, I was looking to show the alarms in the legend instead of the Y axis. This is something I was trying to replicate visually from a different system. Wasn't sure if that was possible but not looking like it as far as I can tell.
