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

 All Forums
 Tools for Java
 QCSPCChart SPC for Java
 Control Limit label in javascript chart
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ajaypowral

USA
21 Posts

Posted - 24 Aug 2016 :  16:12:40  Show Profile  Reply with Quote
Hi, I want to hide the control limit labels on the right side of the chart if I don't specify a control limit value inside SetLimits array. I tried uploading screen shot but couldn't do it.

Here is what I am trying to do -
"PrimaryChartSetup": {
"ControlLimits": {
"DefaultLimits": [true, true],
"SetLimits": [30, 27, null],
}

If I have null in UCL then I want to hide the right hand side label for UCL which currently shows like "UCL-S3=0.0".

Similar to this, if I set following -
"PrimaryChartSetup": {
"ControlLimits": {
"DefaultLimits": [false, false],
"SetLimits": [null, null, null],
}

then I want to hide all the labels on the right hand side but currently it shows "XBAR=0.0"

Please advise if there is any way to hide the right hand side labels based on the requirements.

Edited by - ajaypowral on 24 Aug 2016 16:19:34

quinncurtis

1585 Posts

Posted - 25 Aug 2016 :  08:46:42  Show Profile  Reply with Quote
You can disable the control limit labels (EnableAlarmLineText), the control limit line (EnableAlarmLine), and the alarm checking (EnableAlarmChecking), all using the ControlLimits | Target, LCL3 and UCL3 property blocks of the PrimaryChartSetup. ControlLimits is also found under the SecondaryChartSetup. See the CustomizeChartAppearance example script in the chartdefExampleScripts.js file . In the example below the alarm text has been disabled for LCL3 limit, and enabled for the Target and UCL3 limit, using the "EnableAlarmLineText" property.

		        "PrimaryChartSetup": {
		            "ControlLimits": {
		                "Target": {
		                    "EnableAlarmLine": true,
		                    "EnableAlarmChecking": true,
		                    "LimitValue": 30,
		                    "EnableAlarmLineText": true
		                },
		                "LCL3": {
		                    "EnableAlarmLine": true,
		                    "EnableAlarmChecking": true,
		                    "LimitValue": 25,
		                    "EnableAlarmLineText": false
		                },
		                "UCL3": {
		                    "DisplayString": "UCLXX",
		                    "EnableAlarmLine": true,
		                    "EnableAlarmChecking": true,
		                    "LimitValue": 35,
		                    "EnableAlarmLineText": true
		                }
		            }
		        },
Go to Top of Page
  Previous Topic 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