Is there a way to assign different color for the samples outside the control limits vs spec limits.
In code below, I'm trying to show OOC samples in BLUE and OOS samples in RED, but looks like OOC takes precedence over OOS and it works fine if control limits are wider than spec limits. But it should be the other way round.
Example 1:
Spec Limits: 10 to 30
Control Limits: 5 to 35
Result:
- Work fine.
- Anything more than 35 or less than 5 gets marked BLUE.
- Anything between 30 & 35 or 5 & 10 gets marked RED.
Example 2:
Spec Limits: 10 to 30
Control Limits: 15 to 25
Result:
- Anything more than 25 or less than 15 gets marked BLUE.
- No RED alarms gets set even when out of spec
Here is the JSON:
"PrimaryChartSetup": {
"SpecificationLimits": {
"LowSpecificationLimit":{
"LimitValue": 10
,"LineWidth":3
,"LineColor": "RED"
},
"HighSpecificationLimit":{
"LimitValue": 30
,"LineWidth":3
,"LineColor": "RED"
}
},
"ControlLimits": {
"Target":{
"DisplayString": "Target"
,"LimitValue": 20
},
"UCL":{
"LineColor": "BLUE"
,"LimitValue": 25
,"DisplayString": "UCL"
},
"LCL":{
"LineColor": "BLUE"
,"LimitValue": 15
,"DisplayString": "LCL"
}
}
},
"SampleData": {
"DataSimulation": {
"StartCount": 0,
"Count": 50,
"Mean": 20,
"Range": 60
}
}
Dhruv Bhardwaj