UCL and LCL in XY Charts

Dear Team ,

i need to set up a upper limit and lower limit for xy charts if anyone know kindly guide me

Thanks in advance

  • Add a data points to the datasource,
    {t_stamp : time<sub>min</sub>, "ucl": UCL, "lcl": LCL}
    and
    {t_stamp : time<sub>max</sub>, "ucl": UCL, "lcl": LCL}
  • Create two extra series; one for UCL and one for LCL. Set their data sources to look at the ucl and lcl values.
  • Set the new series to area fill:
    series.x.line.appearance.fill.opacity : 0.5
  • Set the colors:
    series.x.line.appearance.fill.color: #C9DFF8 (for UCL)
    series.x.line.appearance.fill.color: white (for LCL)

That should give you enough to see what's going on. You'll then change the order of the series so that UCL is at the back, LCL is above it and the actual trend you want is on top. When you have everything in order set the UCL and LCL opacity to 1.

hi ,

Thank you for the reply

I'm having trouble in understanding what I need to do in this above quote line. Could you please provide some more clarity to understand

Thank you

Copy the JSON below and paste it into an empty view.

Chart JSON
[
  {
	"type": "ia.chart.xy",
	"version": 0,
	"props": {
	  "xAxes": [
		{
		  "name": "time",
		  "label": {
			"enabled": true,
			"text": "Time",
			"color": ""
		  },
		  "visible": true,
		  "tooltip": {
			"enabled": true,
			"text": "",
			"cornerRadius": 3,
			"pointerLength": 4,
			"background": {
			  "color": "",
			  "opacity": 1
			}
		  },
		  "inversed": false,
		  "render": "date",
		  "category": {
			"break": {
			  "enabled": false,
			  "startCategory": "",
			  "endCategory": "",
			  "size": 0.05
			}
		  },
		  "date": {
			"baseInterval": {
			  "enabled": false,
			  "timeUnit": "hour",
			  "count": 1,
			  "skipEmptyPeriods": false
			},
			"range": {
			  "max": "",
			  "min": "",
			  "useStrict": false
			},
			"break": {
			  "enabled": false,
			  "startDate": "",
			  "endDate": "",
			  "size": 0.05
			},
			"inputFormat": "yyyy-MM-dd kk:mm:ss",
			"format": "M/d"
		  },
		  "value": {
			"range": {
			  "max": "",
			  "min": "",
			  "useStrict": false
			},
			"logarithmic": false,
			"break": {
			  "enabled": false,
			  "startValue": 0,
			  "endValue": 100,
			  "size": 0.05
			},
			"format": "#,###.##"
		  },
		  "appearance": {
			"opposite": false,
			"inside": false,
			"labels": {
			  "color": "",
			  "opacity": 1,
			  "rotation": 0,
			  "verticalCenter": "middle",
			  "horizontalCenter": "middle"
			},
			"grid": {
			  "color": "",
			  "opacity": 1,
			  "dashArray": "",
			  "minDistance": 60,
			  "position": 0.5
			},
			"font": {
			  "size": "",
			  "weight": 500
			}
		  }
		}
	  ],
	  "yAxes": [
		{
		  "name": "process temp",
		  "label": {
			"enabled": true,
			"text": "Process Temp",
			"color": ""
		  },
		  "visible": true,
		  "tooltip": {
			"enabled": true,
			"text": "",
			"cornerRadius": 3,
			"pointerLength": 4,
			"background": {
			  "color": "",
			  "opacity": 1
			}
		  },
		  "inversed": false,
		  "render": "value",
		  "category": {
			"break": {
			  "enabled": false,
			  "startCategory": "",
			  "endCategory": "",
			  "size": 0.05
			}
		  },
		  "date": {
			"baseInterval": {
			  "enabled": false,
			  "timeUnit": "hour",
			  "count": 1,
			  "skipEmptyPeriods": false
			},
			"range": {
			  "max": "",
			  "min": "",
			  "useStrict": false
			},
			"break": {
			  "enabled": false,
			  "startDate": "",
			  "endDate": "",
			  "size": 0.05
			},
			"inputFormat": "yyyy-MM-dd kk:mm:ss",
			"format": "M/d/yyyy HH:mm:ss"
		  },
		  "value": {
			"range": {
			  "max": "",
			  "min": "",
			  "useStrict": false
			},
			"logarithmic": false,
			"break": {
			  "enabled": false,
			  "startValue": 0,
			  "endValue": 100,
			  "size": 0.05
			},
			"format": "#,###.##"
		  },
		  "appearance": {
			"opposite": false,
			"inside": false,
			"labels": {
			  "color": "",
			  "opacity": 1,
			  "rotation": 0,
			  "verticalCenter": "middle",
			  "horizontalCenter": "middle"
			},
			"grid": {
			  "color": "",
			  "opacity": 1,
			  "dashArray": "",
			  "minDistance": null,
			  "position": 0.5
			},
			"font": {
			  "size": "",
			  "weight": 500
			}
		  }
		},
		{
		  "name": "output temp",
		  "label": {
			"enabled": true,
			"text": "Output Temp",
			"color": ""
		  },
		  "visible": true,
		  "inversed": false,
		  "tooltip": {
			"enabled": true,
			"text": "",
			"cornerRadius": 3,
			"pointerLength": 4,
			"background": {
			  "color": "",
			  "opacity": 1
			}
		  },
		  "render": "value",
		  "category": {
			"break": {
			  "enabled": false,
			  "startCategory": "",
			  "endCategory": "",
			  "size": 0.05
			}
		  },
		  "date": {
			"baseInterval": {
			  "enabled": false,
			  "timeUnit": "hour",
			  "count": 1,
			  "skipEmptyPeriods": false
			},
			"range": {
			  "max": "",
			  "min": "",
			  "useStrict": false
			},
			"break": {
			  "enabled": false,
			  "startDate": "",
			  "endDate": "",
			  "size": 0.05
			},
			"inputFormat": "yyyy-MM-dd kk:mm:ss",
			"format": "M/d/yyyy"
		  },
		  "value": {
			"range": {
			  "min": "",
			  "max": "",
			  "useStrict": false
			},
			"logarithmic": false,
			"break": {
			  "enabled": false,
			  "startValue": 0,
			  "endValue": 100,
			  "size": 0.05
			},
			"format": "#,###.##"
		  },
		  "appearance": {
			"opposite": true,
			"inside": false,
			"labels": {
			  "color": "",
			  "opacity": 1,
			  "rotation": 0,
			  "verticalCenter": "middle",
			  "horizontalCenter": "middle"
			},
			"grid": {
			  "color": "",
			  "opacity": 1,
			  "dashArray": "4,4",
			  "minDistance": null,
			  "position": 0.5
			},
			"font": {
			  "size": "",
			  "weight": 500
			}
		  }
		}
	  ],
	  "series": [
		{
		  "name": "process temp",
		  "label": {
			"text": "Process Temp"
		  },
		  "visible": true,
		  "hiddenInLegend": false,
		  "defaultState": {
			"visible": true
		  },
		  "data": {
			"source": "example",
			"x": "t_stamp",
			"y": "process_temp"
		  },
		  "xAxis": "time",
		  "yAxis": "process temp",
		  "zIndex": 0,
		  "tooltip": {
			"enabled": true,
			"text": "{name}: [bold]{valueY}[/]",
			"cornerRadius": 3,
			"pointerLength": 4,
			"background": {
			  "color": "",
			  "opacity": 1
			}
		  },
		  "render": "line",
		  "candlestick": {
			"open": {
			  "x": "",
			  "y": ""
			},
			"high": {
			  "x": "",
			  "y": ""
			},
			"low": {
			  "x": "",
			  "y": ""
			},
			"appearance": {
			  "fill": {
				"color": "",
				"opacity": 1
			  },
			  "stroke": {
				"color": "",
				"opacity": 1,
				"width": 1
			  },
			  "stacked": false,
			  "deriveFieldsFromData": {
				"fill": {
				  "color": "",
				  "opacity": ""
				},
				"stroke": {
				  "color": "",
				  "opacity": "",
				  "width": ""
				}
			  },
			  "heatRules": {
				"enabled": false,
				"max": "",
				"min": "",
				"dataField": ""
			  }
			}
		  },
		  "column": {
			"open": {
			  "x": "",
			  "y": ""
			},
			"appearance": {
			  "fill": {
				"color": "",
				"opacity": 1
			  },
			  "stroke": {
				"color": "",
				"opacity": 1,
				"width": 1
			  },
			  "width": null,
			  "height": null,
			  "stacked": false,
			  "deriveFieldsFromData": {
				"fill": {
				  "color": "",
				  "opacity": ""
				},
				"stroke": {
				  "color": "",
				  "opacity": "",
				  "width": ""
				}
			  },
			  "heatRules": {
				"enabled": false,
				"max": "",
				"min": "",
				"dataField": ""
			  }
			}
		  },
		  "line": {
			"open": {
			  "x": "",
			  "y": ""
			},
			"appearance": {
			  "connect": true,
			  "tensionX": 1,
			  "tensionY": 1,
			  "minDistance": 0.5,
			  "stroke": {
				"width": 3,
				"opacity": 1,
				"color": "",
				"dashArray": ""
			  },
			  "fill": {
				"color": "",
				"opacity": 0
			  },
			  "bullets": [
				{
				  "enabled": false,
				  "render": "circle",
				  "width": 10,
				  "height": 10,
				  "label": {
					"text": "{value}",
					"position": {
					  "dx": 0,
					  "dy": 0
					}
				  },
				  "tooltip": {
					"enabled": true,
					"text": "{name}: [bold]{valueY}[/]",
					"cornerRadius": 3,
					"pointerLength": 4,
					"background": {
					  "color": "",
					  "opacity": 1
					}
				  },
				  "fill": {
					"color": "",
					"opacity": 1
				  },
				  "stroke": {
					"color": "",
					"width": 1,
					"opacity": 1
				  },
				  "rotation": 0,
				  "deriveFieldsFromData": {
					"fill": {
					  "color": "",
					  "opacity": ""
					},
					"stroke": {
					  "color": "",
					  "opacity": "",
					  "width": ""
					},
					"rotation": ""
				  },
				  "heatRules": {
					"enabled": false,
					"max": 100,
					"min": 2,
					"dataField": ""
				  }
				}
			  ]
			}
		  },
		  "stepLine": {
			"open": {
			  "x": "",
			  "y": ""
			},
			"appearance": {
			  "connect": true,
			  "tensionX": 1,
			  "tensionY": 1,
			  "minDistance": 0.5,
			  "stroke": {
				"width": 3,
				"opacity": 1,
				"color": "",
				"dashArray": ""
			  },
			  "fill": {
				"color": "",
				"opacity": 0
			  },
			  "bullets": [
				{
				  "enabled": true,
				  "render": "circle",
				  "width": 10,
				  "height": 10,
				  "label": {
					"text": "{value}",
					"position": {
					  "dx": 0,
					  "dy": 0
					}
				  },
				  "tooltip": {
					"enabled": true,
					"text": "{name}: [bold]{valueY}[/]",
					"cornerRadius": 3,
					"pointerLength": 4,
					"background": {
					  "color": "",
					  "opacity": 1
					}
				  },
				  "fill": {
					"color": "",
					"opacity": 1
				  },
				  "stroke": {
					"color": "",
					"width": 1,
					"opacity": 1
				  },
				  "rotation": 0,
				  "deriveFieldsFromData": {
					"fill": {
					  "color": "",
					  "opacity": ""
					},
					"stroke": {
					  "color": "",
					  "opacity": "",
					  "width": ""
					},
					"rotation": ""
				  },
				  "heatRules": {
					"enabled": false,
					"max": 100,
					"min": 2,
					"dataField": ""
				  }
				}
			  ]
			}
		  }
		},
		{
		  "name": "output temp",
		  "label": {
			"text": "Output Temp"
		  },
		  "visible": true,
		  "hiddenInLegend": false,
		  "defaultState": {
			"visible": true
		  },
		  "data": {
			"source": "example",
			"x": "t_stamp",
			"y": "output_temp"
		  },
		  "xAxis": "time",
		  "yAxis": "output temp",
		  "zIndex": 0,
		  "tooltip": {
			"enabled": true,
			"text": "{name}: [bold]{valueY}[/]",
			"cornerRadius": 3,
			"pointerLength": 4,
			"background": {
			  "color": "",
			  "opacity": 1
			}
		  },
		  "render": "line",
		  "candlestick": {
			"open": {
			  "x": "",
			  "y": ""
			},
			"high": {
			  "x": "",
			  "y": ""
			},
			"low": {
			  "x": "",
			  "y": ""
			},
			"appearance": {
			  "fill": {
				"color": "",
				"opacity": 1
			  },
			  "stroke": {
				"color": "",
				"opacity": 1,
				"width": 1
			  },
			  "stacked": false,
			  "deriveFieldsFromData": {
				"fill": {
				  "color": "",
				  "opacity": ""
				},
				"stroke": {
				  "color": "",
				  "opacity": "",
				  "width": ""
				}
			  },
			  "heatRules": {
				"enabled": false,
				"max": "",
				"min": "",
				"dataField": ""
			  }
			}
		  },
		  "column": {
			"open": {
			  "x": "",
			  "y": ""
			},
			"appearance": {
			  "fill": {
				"color": "",
				"opacity": 1
			  },
			  "stroke": {
				"color": "",
				"opacity": 1,
				"width": 1
			  },
			  "width": null,
			  "height": null,
			  "stacked": false,
			  "deriveFieldsFromData": {
				"fill": {
				  "color": "",
				  "opacity": ""
				},
				"stroke": {
				  "color": "",
				  "opacity": "",
				  "width": ""
				}
			  },
			  "heatRules": {
				"enabled": false,
				"max": "",
				"min": "",
				"dataField": ""
			  }
			}
		  },
		  "line": {
			"open": {
			  "x": "",
			  "y": ""
			},
			"appearance": {
			  "connect": true,
			  "tensionX": 1,
			  "tensionY": 1,
			  "minDistance": 0.5,
			  "stroke": {
				"width": 3,
				"opacity": 1,
				"color": "",
				"dashArray": ""
			  },
			  "fill": {
				"color": "",
				"opacity": 0
			  },
			  "bullets": [
				{
				  "enabled": false,
				  "render": "circle",
				  "width": 10,
				  "height": 10,
				  "label": {
					"text": "{value}",
					"position": {
					  "dx": 0,
					  "dy": 0
					}
				  },
				  "tooltip": {
					"enabled": true,
					"text": "{name}: [bold]{valueY}[/]",
					"cornerRadius": 3,
					"pointerLength": 4,
					"background": {
					  "color": "",
					  "opacity": 1
					}
				  },
				  "fill": {
					"color": "",
					"opacity": 1
				  },
				  "stroke": {
					"color": "",
					"width": 1,
					"opacity": 1
				  },
				  "rotation": 0,
				  "deriveFieldsFromData": {
					"fill": {
					  "color": "",
					  "opacity": ""
					},
					"stroke": {
					  "color": "",
					  "opacity": "",
					  "width": ""
					},
					"rotation": ""
				  },
				  "heatRules": {
					"enabled": false,
					"max": 100,
					"min": 2,
					"dataField": ""
				  }
				}
			  ]
			}
		  },
		  "stepLine": {
			"open": {
			  "x": "",
			  "y": ""
			},
			"appearance": {
			  "connect": true,
			  "tensionX": 1,
			  "tensionY": 1,
			  "minDistance": 0.5,
			  "stroke": {
				"width": 3,
				"opacity": 1,
				"color": "",
				"dashArray": ""
			  },
			  "fill": {
				"color": "",
				"opacity": 0
			  },
			  "bullets": [
				{
				  "enabled": true,
				  "render": "circle",
				  "width": 10,
				  "height": 10,
				  "label": {
					"text": "{value}",
					"position": {
					  "dx": 0,
					  "dy": 0
					}
				  },
				  "tooltip": {
					"enabled": true,
					"text": "{name}: [bold]{valueY}[/]",
					"cornerRadius": 3,
					"pointerLength": 4,
					"background": {
					  "color": "",
					  "opacity": 1
					}
				  },
				  "fill": {
					"color": "",
					"opacity": 1
				  },
				  "stroke": {
					"color": "",
					"width": 1,
					"opacity": 1
				  },
				  "rotation": 0,
				  "deriveFieldsFromData": {
					"fill": {
					  "color": "",
					  "opacity": ""
					},
					"stroke": {
					  "color": "",
					  "opacity": "",
					  "width": ""
					},
					"rotation": ""
				  },
				  "heatRules": {
					"enabled": false,
					"max": 100,
					"min": 2,
					"dataField": ""
				  }
				}
			  ]
			}
		  }
		},
		{
		  "name": "ucl",
		  "label": {
			"text": "series 2 - UCL"
		  },
		  "visible": true,
		  "hiddenInLegend": false,
		  "defaultState": {
			"visible": true
		  },
		  "data": {
			"source": "limits",
			"x": "t_stamp",
			"y": "ucl"
		  },
		  "xAxis": "time",
		  "yAxis": "process temp",
		  "zIndex": -2,
		  "tooltip": {
			"enabled": true,
			"text": "{name}: [bold]{valueY}[/]",
			"cornerRadius": 3,
			"pointerLength": 4,
			"background": {
			  "color": "",
			  "opacity": 1
			}
		  },
		  "render": "line",
		  "candlestick": {
			"open": {
			  "x": "",
			  "y": ""
			},
			"high": {
			  "x": "",
			  "y": ""
			},
			"low": {
			  "x": "",
			  "y": ""
			},
			"appearance": {
			  "fill": {
				"color": "",
				"opacity": 1
			  },
			  "stroke": {
				"color": "",
				"opacity": 1,
				"width": 1
			  },
			  "stacked": false,
			  "deriveFieldsFromData": {
				"fill": {
				  "color": "",
				  "opacity": ""
				},
				"stroke": {
				  "color": "",
				  "opacity": "",
				  "width": ""
				}
			  },
			  "heatRules": {
				"enabled": false,
				"max": "",
				"min": "",
				"dataField": ""
			  }
			}
		  },
		  "column": {
			"open": {
			  "x": "",
			  "y": ""
			},
			"appearance": {
			  "fill": {
				"color": "",
				"opacity": 1
			  },
			  "stroke": {
				"color": "",
				"opacity": 1,
				"width": 1
			  },
			  "stacked": false,
			  "width": null,
			  "height": null,
			  "deriveFieldsFromData": {
				"fill": {
				  "color": "",
				  "opacity": ""
				},
				"stroke": {
				  "color": "",
				  "opacity": "",
				  "width": ""
				}
			  },
			  "heatRules": {
				"enabled": false,
				"max": "",
				"min": "",
				"dataField": ""
			  }
			}
		  },
		  "line": {
			"open": {
			  "x": "",
			  "y": ""
			},
			"appearance": {
			  "connect": true,
			  "tensionX": 1,
			  "tensionY": 1,
			  "minDistance": 0.5,
			  "stroke": {
				"width": 3,
				"opacity": 1,
				"color": "#FC7A7A",
				"dashArray": ""
			  },
			  "fill": {
				"opacity": 0,
				"color": "#149E19"
			  },
			  "bullets": [
				{
				  "enabled": false,
				  "render": "circle",
				  "width": 10,
				  "height": 10,
				  "label": {
					"text": "{value}",
					"position": {
					  "dx": 0,
					  "dy": 0
					}
				  },
				  "fill": {
					"color": "",
					"opacity": 1
				  },
				  "stroke": {
					"color": "",
					"opacity": 1,
					"width": 1
				  },
				  "rotation": 0,
				  "tooltip": {
					"enabled": true,
					"text": "{name}: [bold]{valueY}[/]",
					"cornerRadius": 3,
					"pointerLength": 4,
					"background": {
					  "color": "",
					  "opacity": 1
					}
				  },
				  "deriveFieldsFromData": {
					"fill": {
					  "color": "",
					  "opacity": ""
					},
					"stroke": {
					  "color": "",
					  "opacity": "",
					  "width": ""
					},
					"rotation": ""
				  },
				  "heatRules": {
					"enabled": false,
					"max": 100,
					"min": 2,
					"dataField": ""
				  }
				}
			  ]
			}
		  },
		  "stepLine": {
			"open": {
			  "x": "",
			  "y": ""
			},
			"appearance": {
			  "connect": true,
			  "tensionX": 1,
			  "tensionY": 1,
			  "minDistance": 0.5,
			  "stroke": {
				"width": 3,
				"opacity": 1,
				"color": "",
				"dashArray": ""
			  },
			  "fill": {
				"opacity": 0,
				"color": ""
			  },
			  "bullets": [
				{
				  "enabled": true,
				  "render": "circle",
				  "width": 10,
				  "height": 10,
				  "label": {
					"text": "{value}",
					"position": {
					  "dx": 0,
					  "dy": 0
					}
				  },
				  "fill": {
					"color": "",
					"opacity": 1
				  },
				  "stroke": {
					"color": "",
					"opacity": 1,
					"width": 1
				  },
				  "rotation": 0,
				  "tooltip": {
					"enabled": true,
					"text": "{name}: [bold]{valueY}[/]",
					"cornerRadius": 3,
					"pointerLength": 4,
					"background": {
					  "color": "",
					  "opacity": 1
					}
				  },
				  "deriveFieldsFromData": {
					"fill": {
					  "color": "",
					  "opacity": ""
					},
					"stroke": {
					  "color": "",
					  "opacity": "",
					  "width": ""
					},
					"rotation": ""
				  },
				  "heatRules": {
					"enabled": false,
					"max": 100,
					"min": 2,
					"dataField": ""
				  }
				}
			  ]
			}
		  }
		},
		{
		  "name": "ucl",
		  "label": {
			"text": "series 2 - UCL"
		  },
		  "visible": true,
		  "hiddenInLegend": false,
		  "defaultState": {
			"visible": true
		  },
		  "data": {
			"source": "limits",
			"x": "t_stamp",
			"y": "lcl"
		  },
		  "xAxis": "time",
		  "yAxis": "process temp",
		  "zIndex": -2,
		  "tooltip": {
			"enabled": true,
			"text": "{name}: [bold]{valueY}[/]",
			"cornerRadius": 3,
			"pointerLength": 4,
			"background": {
			  "color": "",
			  "opacity": 1
			}
		  },
		  "render": "line",
		  "candlestick": {
			"open": {
			  "x": "",
			  "y": ""
			},
			"high": {
			  "x": "",
			  "y": ""
			},
			"low": {
			  "x": "",
			  "y": ""
			},
			"appearance": {
			  "fill": {
				"color": "",
				"opacity": 1
			  },
			  "stroke": {
				"color": "",
				"opacity": 1,
				"width": 1
			  },
			  "stacked": false,
			  "deriveFieldsFromData": {
				"fill": {
				  "color": "",
				  "opacity": ""
				},
				"stroke": {
				  "color": "",
				  "opacity": "",
				  "width": ""
				}
			  },
			  "heatRules": {
				"enabled": false,
				"max": "",
				"min": "",
				"dataField": ""
			  }
			}
		  },
		  "column": {
			"open": {
			  "x": "",
			  "y": ""
			},
			"appearance": {
			  "fill": {
				"color": "",
				"opacity": 1
			  },
			  "stroke": {
				"color": "",
				"opacity": 1,
				"width": 1
			  },
			  "stacked": false,
			  "width": null,
			  "height": null,
			  "deriveFieldsFromData": {
				"fill": {
				  "color": "",
				  "opacity": ""
				},
				"stroke": {
				  "color": "",
				  "opacity": "",
				  "width": ""
				}
			  },
			  "heatRules": {
				"enabled": false,
				"max": "",
				"min": "",
				"dataField": ""
			  }
			}
		  },
		  "line": {
			"open": {
			  "x": "",
			  "y": ""
			},
			"appearance": {
			  "connect": true,
			  "tensionX": 1,
			  "tensionY": 1,
			  "minDistance": 0.5,
			  "stroke": {
				"width": 3,
				"opacity": 1,
				"color": "#FC7A7A",
				"dashArray": ""
			  },
			  "fill": {
				"opacity": 0,
				"color": "#ffffff"
			  },
			  "bullets": [
				{
				  "enabled": false,
				  "render": "circle",
				  "width": 10,
				  "height": 10,
				  "label": {
					"text": "{value}",
					"position": {
					  "dx": 0,
					  "dy": 0
					}
				  },
				  "fill": {
					"color": "",
					"opacity": 1
				  },
				  "stroke": {
					"color": "",
					"opacity": 1,
					"width": 1
				  },
				  "rotation": 0,
				  "tooltip": {
					"enabled": true,
					"text": "{name}: [bold]{valueY}[/]",
					"cornerRadius": 3,
					"pointerLength": 4,
					"background": {
					  "color": "",
					  "opacity": 1
					}
				  },
				  "deriveFieldsFromData": {
					"fill": {
					  "color": "",
					  "opacity": ""
					},
					"stroke": {
					  "color": "",
					  "opacity": "",
					  "width": ""
					},
					"rotation": ""
				  },
				  "heatRules": {
					"enabled": false,
					"max": 100,
					"min": 2,
					"dataField": ""
				  }
				}
			  ]
			}
		  },
		  "stepLine": {
			"open": {
			  "x": "",
			  "y": ""
			},
			"appearance": {
			  "connect": true,
			  "tensionX": 1,
			  "tensionY": 1,
			  "minDistance": 0.5,
			  "stroke": {
				"width": 3,
				"opacity": 1,
				"color": "",
				"dashArray": ""
			  },
			  "fill": {
				"opacity": 0,
				"color": ""
			  },
			  "bullets": [
				{
				  "enabled": true,
				  "render": "circle",
				  "width": 10,
				  "height": 10,
				  "label": {
					"text": "{value}",
					"position": {
					  "dx": 0,
					  "dy": 0
					}
				  },
				  "fill": {
					"color": "",
					"opacity": 1
				  },
				  "stroke": {
					"color": "",
					"opacity": 1,
					"width": 1
				  },
				  "rotation": 0,
				  "tooltip": {
					"enabled": true,
					"text": "{name}: [bold]{valueY}[/]",
					"cornerRadius": 3,
					"pointerLength": 4,
					"background": {
					  "color": "",
					  "opacity": 1
					}
				  },
				  "deriveFieldsFromData": {
					"fill": {
					  "color": "",
					  "opacity": ""
					},
					"stroke": {
					  "color": "",
					  "opacity": "",
					  "width": ""
					},
					"rotation": ""
				  },
				  "heatRules": {
					"enabled": false,
					"max": 100,
					"min": 2,
					"dataField": ""
				  }
				}
			  ]
			}
		  }
		}
	  ],
	  "dataSources": {
		"example": [
		  {
			"t_stamp": "Tue Aug 07 2018",
			"process_temp": 63,
			"output_temp": 38
		  },
		  {
			"t_stamp": "Tue Aug 08 2018",
			"process_temp": 59,
			"output_temp": 39
		  },
		  {
			"t_stamp": "Tue Aug 09 2018",
			"process_temp": 62,
			"output_temp": 41
		  },
		  {
			"t_stamp": "Tue Aug 10 2018",
			"process_temp": 63,
			"output_temp": 37
		  },
		  {
			"t_stamp": "Tue Aug 11 2018",
			"process_temp": 48,
			"output_temp": 31
		  },
		  {
			"t_stamp": "Tue Aug 12 2018",
			"process_temp": 54,
			"output_temp": 42
		  },
		  {
			"t_stamp": "Tue Aug 13 2018",
			"process_temp": 49,
			"output_temp": 38
		  },
		  {
			"t_stamp": "Tue Aug 14 2018",
			"process_temp": 69,
			"output_temp": 34
		  },
		  {
			"t_stamp": "Tue Aug 15 2018",
			"process_temp": 73,
			"output_temp": 56
		  },
		  {
			"t_stamp": "Tue Aug 16 2018",
			"process_temp": 61,
			"output_temp": 32
		  }
		],
		"limits": [
		  {
			"t_stamp": "Tue Aug 07 2018",
			"ucl": 65,
			"lcl": 55
		  },
		  {
			"t_stamp": "Tue Aug 17 2018",
			"ucl": 65,
			"lcl": 55
		  }
		]
	  }
	},
	"meta": {
	  "name": "XYChart"
	},
	"position": {
	  "x": 52,
	  "y": 399,
	  "height": 375,
	  "width": 839
	},
	"custom": {}
  }
]

Have a look at props.dataSources.limits where I've added the UCL and LCL.

1 Like