# Creating x-bar r-chart in vision

**URL:** <https://forum.inductiveautomation.com/t/creating-x-bar-r-chart-in-vision/71207>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [March 17, 2023, 4:06am UTC](https://forum.inductiveautomation.com/t/creating-x-bar-r-chart-in-vision/71207 "2023-03-17T04:06:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aman\_sharma](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@aman\_sharma](https://forum.inductiveautomation.com/u/aman_sharma)\
**Post date:** [March 17, 2023, 4:06am UTC](https://forum.inductiveautomation.com/t/creating-x-bar-r-chart-in-vision/71207/1 "2023-03-17T04:06:04Z")

</div>

I’m trying to create a X-Bar R-Chart using the easy Chart in vision. please help me to know can i create x bar r chart by using easy chart or which chart is suitable and also how to draw the horizontal lines (control limits).

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/6/664e6508736d0611398dbdb1c825432ea391994d.jpeg)

i want to create like this.

---

<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:** [March 17, 2023, 3:18pm UTC](https://forum.inductiveautomation.com/t/creating-x-bar-r-chart-in-vision/71207/2 "2023-03-17T15:18:28Z")

</div>

The traditional Chart component is IMNSHO the best component for this task.

Probably the simplest way is to add datasets to the component using the Chart Customizer and then configuring the renderer as needed. You just have to fill the datasets with appropriate data for the renderer to produce the result you need.

There are other less trivial ways of accomplishing this using the JFreeChart package, which if you want to go that way I can also help with.

Ignore the date this screenshot is really old. Never the less, these were done in Ignition.

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

---

<div class="post-metadata">

**Author:** ![aman\_sharma](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@aman\_sharma](https://forum.inductiveautomation.com/u/aman_sharma)\
**Post date:** [March 18, 2023, 2:49am UTC](https://forum.inductiveautomation.com/t/creating-x-bar-r-chart-in-vision/71207/3 "2023-03-18T02:49:53Z")

</div>

i didn't find such component in my component palette. where can i get this component?

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [March 18, 2023, 1:21pm UTC](https://forum.inductiveautomation.com/t/creating-x-bar-r-chart-in-vision/71207/4 "2023-03-18T13:21:41Z")

</div>

It should be there. It's called 'chart'

---

<div class="post-metadata">

**Author:** ![aman\_sharma](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@aman\_sharma](https://forum.inductiveautomation.com/u/aman_sharma)\
**Post date:** [March 18, 2023, 3:42pm UTC](https://forum.inductiveautomation.com/t/creating-x-bar-r-chart-in-vision/71207/5 "2023-03-18T15:42:43Z")

</div>

i created the chart but i am not able to create the horizontal lines for refer control limit, upper and lower control limit. please guide how to create these lines.

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

---

<div class="post-metadata">

**Author:** ![aman\_sharma](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@aman\_sharma](https://forum.inductiveautomation.com/u/aman_sharma)\
**Post date:** [March 20, 2023, 1:48am UTC](https://forum.inductiveautomation.com/t/creating-x-bar-r-chart-in-vision/71207/6 "2023-03-20T01:48:56Z")

</div>

Please suggest me how to create the horizontal lines(control limit, upper and lower control limit)

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [March 20, 2023, 2:14am UTC](https://forum.inductiveautomation.com/t/creating-x-bar-r-chart-in-vision/71207/7 "2023-03-20T02:14:28Z")

</div>

It's simple. Simply add a custom dataset property called limits, or add columns to the existing dataset property.

**Example:**  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/8/38e925d2bf0fde70f9ad6b5ab645808f6df87f94.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/3/8353a9baac822a58613d68b1f46bc5fae18e13ac.png)

**Result:**

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

---

<div class="post-metadata">

**Author:** ![aman\_sharma](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@aman\_sharma](https://forum.inductiveautomation.com/u/aman_sharma)\
**Post date:** [March 20, 2023, 5:24am UTC](https://forum.inductiveautomation.com/t/creating-x-bar-r-chart-in-vision/71207/8 "2023-03-20T05:24:47Z")

</div>

Thankyou Justin !
