T O P I C R E V I E W |
aletenti |
Posted - 18 Apr 2017 : 09:00:07 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 |
4 L A T E S T R E P L I E S (Newest First) |
quinncurtis |
Posted - 19 Apr 2017 : 09:36:50 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"
}
}
},
|
aletenti |
Posted - 19 Apr 2017 : 08:13:03 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. |
aletenti |
Posted - 19 Apr 2017 : 04:27:49 Thank you very much for your reply! |
quinncurtis |
Posted - 18 Apr 2017 : 09:48:23 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.
|
|
|