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
 remove sigma1 and sigma2 on the chart
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

aletenti

Italy
8 Posts

Posted - 18 Apr 2017 :  09:00:07  Show Profile  Reply with Quote
Hi, I'm trying to remove sigma1 and sigma2 limits, but I have difficulties in doing that. I saw in manual there's a class called "123SigmaControlLimits" that could resolve my issue (I think), but I'm generating JSON dynamically by using C# code and so I have to create C# classes with the same name of the JSON properties in order to serialize them, but I can't create C# classes starting with a number. Are there other ways to resolve the problem?

My JSON:

{
	"StaticProperties": {
		"Canvas": {
			"Width": 1500,
			"Height": 650
		},
		"DefaultTableFont": {
			"Name": "Arial",
			"Size": 14,
			"Style": "PLAIN"
		},
		"DefaultAlarmColors": {
			"Trending": "RED",
			"Alternating": "RED"
		},
		"DefaultChartFonts": {
			"AxisLabelFont": {
				"Name": "Arial",
				"Size": 12,
				"Style": "BOLD"
			},
			"ControlLimitLabelFont": {
				"Name": "Arial",
				"Size": 8,
				"Style": "PLAIN"
			}
		}
	},
	"SPCChart": {
		"InitChartProperties": {
			"SPCChartType": "MEAN_RANGE_CHART",
			"ChartMode": "Batch",
			"NumSamplesPerSubgroup": 4,
			"NumDatapointsInView": 12
		},
		"ChartPositioning": {
			"GraphStartPosX": 0.175
		},
		"PrimaryChartSetup": {
			"FrequencyHistogram": {
				"EnableDisplayFrequencyHistogram": false
			},
			"ControlLimits": {
				"Target": {
					"LineColor": "BLACK"
				},
				"UCL3": {
					"DisplayString": "UCL"
				},
				"LCL3": {
					"LineColor": "RED",
					"DisplayString": "LCL"
				}
			},
			"NamedRuleSet": {
				"RuleSet": "NELSON_RULES",
				"RuleEnable": [
					true,
					true,
					true,
					true,
					true,
					true,
					true,
					true,
					true,
					true,
					true,
					true
				]
			},
			"XAxisLabels": {
				"AxisLabelMode": "AXIS_LABEL_MODE_STRING"
			}
		},
		"SecondaryChartSetup": {
			"FrequencyHistogram": {
				"EnableDisplayFrequencyHistogram": false
			},
			"ControlLimits": {
				"Target": {
					"LineColor": "BLACK"
				},
				"UCL3": {
					"DisplayString": "UCL"
				},
				"LCL3": {
					"LineColor": "RED",
					"DisplayString": "LCL"
				}
			},
			"NamedRuleSet": {
				"RuleSet": "NELSON_RULES",
				"RuleEnable": [
					false,
					false,
					false,
					false,
					false,
					false,
					false,
					true,
					true,
					true,
					false,
					true
				]
			}
		},
		"Scrollbar": {
			"EnableScrollBar": true
		},
		"TableSetup": {
			"HeaderStringsLevel": "HEADER_STRINGS_LEVEL0",
			"EnableInputStringsDisplay": false,
			"EnableTimeValues": false,
			"EnableCategoryValues": false,
			"EnableCalculatedValues": true,
			"EnableTotalSamplesValues": true,
			"EnableNotes": true,
			"TableAlarmEmphasisMode": "ALARM_HIGHLIGHT_BAR",
			"ChartAlarmEmphasisMode": "ALARM_HIGHLIGHT_SYMBOL",
			"ChartData": {
				"SampleItemDecimals": 2,
				"CalculatedItemDecimals": 2
			}
		},
		"SampleData": {
			"SampleIntervalRecords": [
				{
					"SampleValues": [
						3,
						3.1,
						2.8,
						2.4
					],
					"BatchCount": 0,
					"TimeStamp": "/Date(1492160883870)/",
					"BatchIDString": "11:08",
					"Note": ""
				},
				{
					"SampleValues": [
						2.6,
						3.4,
						4.6,
						4.4
					],
					"BatchCount": 1,
					"TimeStamp": "/Date(1492164473900)/",
					"BatchIDString": "12:07",
					"Note": ""
				},
				{
					"SampleValues": [
						3.2,
						3.1,
						2.9,
						2.7
					],
					"BatchCount": 2,
					"TimeStamp": "/Date(1492165271853)/",
					"BatchIDString": "12:21",
					"Note": ""
				},
				{
					"SampleValues": [
						2.9,
						3,
						3.1,
						3
					],
					"BatchCount": 3,
					"TimeStamp": "/Date(1492171992953)/",
					"BatchIDString": "14:13",
					"Note": ""
				},
				{
					"SampleValues": [
						2.9,
						2.4,
						3.2,
						2.7
					],
					"BatchCount": 4,
					"TimeStamp": "/Date(1492517484343)/",
					"BatchIDString": "14:11",
					"Note": ""
				}
			]
		},
		"MiscChartDataProperties": {
			"AutoLogAlarmsAsNotes": true,
			"DefaultControlLimitSigma": 3
		},
		"Methods": {
			"AutoCalculateControlLimits": true,
			"AutoScaleYAxes": true,
			"RebuildUsingCurrentData": true
		}
	}
}


There is a screen of my chart: http://imgh.us/Cattura3.jpg

Thanks!
Alessio

quinncurtis

1531 Posts

Posted - 18 Apr 2017 :  09:48:23  Show Profile  Reply with Quote
Here is a better answer to your question.

You can't use 123SigmaControlLimits. That adds new limits to the chart, and you already have a complete set of limits because you are using the Nelson Rules named ruleset.

In the JavaScript version of the software, you cannot selectively disable the 1-sigma and 2-sigma control lines and text for charts using the named control rules. There is no JSON script for that. We will have to consider adding that to a future version of the software.
Go to Top of Page

aletenti

Italy
8 Posts

Posted - 19 Apr 2017 :  04:27:49  Show Profile  Reply with Quote
Thank you very much for your reply!
Go to Top of Page

aletenti

Italy
8 Posts

Posted - 19 Apr 2017 :  08:13:03  Show Profile  Reply with Quote
Sorry, another question about this topic: is it possible to change line color of 1-sigma and 2-sigma?
now, i see in red the UPPER 1-2-sigma, and in blue the LOWER ones.
Go to Top of Page

quinncurtis

1531 Posts

Posted - 19 Apr 2017 :  09:36:50  Show Profile  Reply with Quote
You can't set them individually. But you can set the alarm colors globally using the HighAlarm and LowAlarm properties of the StaticProperties block, similar to what you are already doing.

"StaticProperties": {
		"Canvas": {
			"Width": 1500,
			"Height": 650
		},
		"DefaultTableFont": {
			"Name": "Arial",
			"Size": 14,
			"Style": "PLAIN"
		},
		"DefaultAlarmColors": {
                   "LowAlarm": "RED",
                   "HighAlarm": "RED",
			"Trending": "RED",
			"Alternating": "RED"
		},
		"DefaultChartFonts": {
			"AxisLabelFont": {
				"Name": "Arial",
				"Size": 12,
				"Style": "BOLD"
			},
			"ControlLimitLabelFont": {
				"Name": "Arial",
				"Size": 8,
				"Style": "PLAIN"
			}
		}
	},
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07