# XY Chart: Draw Tolerance Band

**URL:** <https://forum.inductiveautomation.com/t/xy-chart-draw-tolerance-band/62409>\
**Category:** Ignition\
**Created:** [July 28, 2022, 12:29pm UTC](https://forum.inductiveautomation.com/t/xy-chart-draw-tolerance-band/62409 "2022-07-28T12:29:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klaus\_Reckefuss](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@Klaus\_Reckefuss](https://forum.inductiveautomation.com/u/Klaus_Reckefuss)\
**Post date:** [July 28, 2022, 12:29pm UTC](https://forum.inductiveautomation.com/t/xy-chart-draw-tolerance-band/62409/1 "2022-07-28T12:29:13Z")

</div>

Is it possilble to draw a tolerance band in xy chart, like in the example image?

 ![ToleranceBand](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/9/59de4cf4f2b1b02213cc708d0005118253d3b103.png)

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [July 28, 2022, 1:20pm UTC](https://forum.inductiveautomation.com/t/xy-chart-draw-tolerance-band/62409/2 "2022-07-28T13:20:49Z")

</div>

You could just and an elemnt behind it with those colors, that is if the upper and lower limit of the grapgh are static…

If its not static you’ll have to do some maths to put it on the correct space …

the `linear-gradient` style is create for something like this

---

<div class="post-metadata">

**Author:** ![Klaus\_Reckefuss](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@Klaus\_Reckefuss](https://forum.inductiveautomation.com/u/Klaus_Reckefuss)\
**Post date:** [July 28, 2022, 1:36pm UTC](https://forum.inductiveautomation.com/t/xy-chart-draw-tolerance-band/62409/3 "2022-07-28T13:36:06Z")

</div>

The example image is done by that. Problem is, when you deselect one of the series, the xy chart rezises and all the elements of the tolerance-band have to be rezised. So the elements of the tolerance-band need an event to rezise when the xy-chart rescales. I don’t know to connect the tolerance-band-elements to signals from the xychart for rescaling.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [July 28, 2022, 2:17pm UTC](https://forum.inductiveautomation.com/t/xy-chart-draw-tolerance-band/62409/4 "2022-07-28T14:17:28Z")

</div>

Idk if its possible for your data, but you can set a min and max range of the y’axes to a fixed value so it doesnt jump around  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/1/618614576f054322971d150cfc5752ddc7697321.png)

that should make it easier to keep the colors in place

---

<div class="post-metadata">

**Author:** ![Klaus\_Reckefuss](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@Klaus\_Reckefuss](https://forum.inductiveautomation.com/u/Klaus_Reckefuss)\
**Post date:** [July 28, 2022, 2:25pm UTC](https://forum.inductiveautomation.com/t/xy-chart-draw-tolerance-band/62409/5 "2022-07-28T14:25:21Z")

</div>

Thanks, i can live with fixing the range  
To implement this in xychart, from ignition , to set color bands, would be a nice update

---

<div class="post-metadata">

**Author:** ![Klaus\_Reckefuss](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@Klaus\_Reckefuss](https://forum.inductiveautomation.com/u/Klaus_Reckefuss)\
**Post date:** [September 22, 2022, 6:46am UTC](https://forum.inductiveautomation.com/t/xy-chart-draw-tolerance-band/62409/6 "2022-09-22T06:46:30Z")

</div>

After reading and some experimenting, i found out, the best way, to do this, is to use a column as render property. Using in the data property the time stamp of the start of the time interval and in the column property the time stamp of the end of the time interval
