Creating X-Bar R-Chart in Perspective

I’m trying to create a X-Bar R-Chart using the XY Chart in Perspective. Does anybody know how to draw the horizontal lines (control limits)? I’m reading in data from a SQL database and plotting that on the graph, which works fine. Then we have the (user inputted) control limits that are supposed to be displayed on the same chart. Any ideas how to go about this? Thank you!

the horizantal lines are just indicators of the values of the yaxes
you can change color here:


tho i dont think this is what you want to use to indicate limits, you should just draw a new line for this

(the dotted ones of the outputtemp just happen to mostly underline the ones off the proccestemp)
image

Thank you for your reply. I’m not trying to format the lines though. I’m trying to add in additional horizontal lines to display the upper and lower control limits.

Not sure if its the easiest methode, but you could add in a upper and lower bound for every data entry in the datasrouce
and add in an extra series with those values… (so instead of a line going up and down it will just go straight xd)

I would have to create a different table for each one of the datasources (we will have several). I was looking into scripting a new dataset (by pulling in a query and then adding in a column with the process values) but haven’t quite figured that out yet.

what do you mean with a diffrent table? do you now have a table with multiple datasources in it?
it would stild be the same, every table just needs to add in an column row for the upper and lower limits

you can use this to add in an extra column to a dataset
https://docs.inductiveautomation.com/display/DOC81/system.dataset.addColumn