Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 QCSPCChart for Javascript
 QCSPCChart for Javascript
 Different alarm checking color for OOC and OOS
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

dbhardwaj

USA
2 Posts

Posted - 21 Apr 2020 :  15:41:19  Show Profile  Reply with Quote
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

Edited by - dbhardwaj on 21 Apr 2020 15:52:10

quinncurtis

1571 Posts

Posted - 21 Apr 2020 :  17:19:24  Show Profile  Reply with Quote
That version of the software is not designed to have all of the options for coloring the out of limit symbols that you seem to want to use. It does not separate the control limits and spec limits that way. In general, all > control limits have one symbol color (RED by default), and all < control limits have another (BLUE). it doesn't matter if it is a spec limit or a control limit. So when either the process value exceeds the UCL (or HSL) it will go to the high alarm symbol color, and similarly the LCL (LSL). If you set enough conflicting colors you will get anomalies.

If you want both > alarms and < alarms to appear in color RED, as your setup looks, change the default colors to RED using the StaticProperties block.

"StaticProperties": {

"DefaultAlarmColors": {
"LowAlarm": "0xFFFF0000",
"HighAlarm": "0xFFFF0000",
}
},

Then assuming your spec limits are always outside of the HCL and LCL, the color for the symbol outside of either HCL or HSL will always be RED. But you can't add another level to also change the color if the HSL and LSL are exceeded.

If you can discard the requirement that control limits and spec limits use different alarm symbol highlighting, but want something different than the defaults, we can probably tell how to do it.


Go to Top of Page

dbhardwaj

USA
2 Posts

Posted - 22 Apr 2020 :  12:45:32  Show Profile  Reply with Quote
Thanks for the quick response and clearing it up

Dhruv Bhardwaj
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07