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 Javascript/Typescript
 QCSPCChart for Javascript/GWT
 Resizing y axis, maintaining scroll position
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

martintijmes

Netherlands
23 Posts

Posted - 11 Nov 2019 :  09:27:31  Show Profile  Reply with Quote
Hello,

Using v3.6.4.

I have a requirement to manually resize the y-axis after rendering, while maintaining the scroll position. I see two possibilities:
1) pushJSONChartCreateDiv
2) pushJSONChartUpdate

1)
Using the pushJSONChartCreateDiv method I can just recreate the chart, but I need to be able to set back the latest scroll position.

Is there a way to get the actual scroll position of the chart, after the user has (possibly) changed it?

2)
Alternatively, by using pushJSONChartUpdate I can also update the Y Axis, by filling in the YAxisMin and YAxisMax values, and setting AutoScaleYAxes to false. Furthermore, I remove several properties from my chartObject:
chartObject.SPCChart.PrimaryChartSetup.YAxisLeft.MinValue = yAxisMin;
chartObject.SPCChart.PrimaryChartSetup.YAxisLeft.MaxValue = yAxisMax;
chartObject.SPCChart.Methods.AutoScaleYAxes[0] = false;
delete chartObject.SPCChart.InitChartProperties;
delete chartObject.SPCChart.Annotations;
delete chartObject.SPCChart.SampleData;
delete chartObject.SPCChart.Scrollbar.ScrollbarValue;

However, in this case I get some strange effect here that the rendering is adding "LSL = 0" and "USL = 0" labels while they are not specified. Do you know what could cause this?

Thanks.

martintijmes

Netherlands
23 Posts

Posted - 11 Nov 2019 :  09:28:53  Show Profile  Reply with Quote
JSON for chart before resizing:

{
"StaticProperties": {
"Canvas": {
"Width": 1784,
"Height": 791
},
"DefaultFontName": "Tahoma, Arial, sans-serif",
"DefaultTableFont": {
"Name": "Tahoma, Arial, sans-serif",
"Size": 12,
"Style": "Plain"
},
"SPCChartStrings": {
"DefaultMean": "MEAN",
"DefaultMedian": "MEDIAN",
"DefaultRange": "RANGE",
"DefaultVariance": "VARIANCE",
"DefaultSigma": "SIGMA",
"DefaultSampleValue": "VALUES",
"DefaultAbsRange": "ABS(RANGE)",
"DefaultSum": "SUM",
"TitleHeader": "Characteristic: ",
"ChartNumberHeader": "Chart: ",
"PartNumberHeader": "Material Id: ",
"PartNameHeader": "Material Desc.: ",
"OperationHeader": "Material Id: ",
"MachineHeader": "Entity: ",
"OperatorHeader": "Operator: ",
"DateHeader": "Date: ",
"NotesHeader": "@@Notes@@",
"AlarmHeader": "@@Alarm@@",
"TimeHeader": "@@Time@@"
},
"DefaultAlarmColors": {
"LowAlarm": "0xFF305496",
"HighAlarm": "0xFF305496",
"HighSpecLimit": "0xFFFF0000",
"LowSpecLimit": "0xFFFF0000"
}
},
"SPCChart": {
"InitChartProperties": {
"SPCChartType": "MEAN_RANGE_CHART",
"ChartMode": "Batch",
"NumCategories": 1,
"NumSamplesPerSubgroup": 1,
"NumDatapointsInView": 12,
"NumberAddedVariables": 0
},
"Scrollbar": {
"EnableScrollBar": true,
"ScrollbarPosition": "SCROLLBAR_POSITION_UNCHANGED",
"ScrollbarValue": 0
},
"TableSetup": {
"EnableProcessCapabilityValues": true,
"EnableCategoryValues": false,
"EnableTotalSamplesValues": true,
"HeaderStringsLevel": "HEADER_STRINGS_LEVEL2",
"TableBackgroundMode": "TABLE_STRIPED_COLOR_BACKGROUND",
"BackgroundColor1": "BEIGE",
"BackgroundColor2": "GHOSTWHITE",
"TableAlarmEmphasisMode": "ALARM_HIGHLIGHT_OUTLINE",
"ChartAlarmEmphasisMode": "ALARM_HIGHLIGHT_SYMBOL",
"EnableNotes": true,
"ChartData": {
"TimeFormat": "TIMEDATEFORMAT_24HM",
"Title": "Coloma Oil: weight of 3 dozes",
"ChartNumber": "Xbar + Range",
"PartName": "JCBS 200G CRONAT GOLD 6CA ISR",
"Operation": "",
"Machine": "Filling",
"ProcessCapabilitySetup": {
"EnableCPK": false
},
"CustomTimeFormatString": "M/d h:mm a",
"PartNumber": "4251267",
"Operator": null,
"DateString": "11/11/2019",
"CalculatedItemDecimals": 3
}
},
"MiscChartDataProperties": {
"MultiVariableItems": {
"MultiVariableColors": [],
"YAxisMapping": []
},
"Legend": {
"EnableLegend": true,
"LegendStrings": ["char0000019"]
}
},
"Events": {
"EnableDataToolTip": true,
"EnableJSONDataToolTip": true,
"AlarmStateEventEnable": true,
"AlarmTransitionEventEnable": false,
"DataToolTip": {
"EnableCategoryValues": false,
"EnableProcessCapabilityValues": false,
"EnableCalculatedValues": true,
"EnableNotesString": false
},
"NotesToolTip": {
"NotesReadOnly": true
},
"EnableAlarmStatusValues": false
},
"PrimaryChartSetup": {
"FrequencyHistogram": {
"EnableDisplayFrequencyHistogram": true
},
"ControlLimits": {
"OutOfLimitSymbolSize": 12,
"OutOfLimitSymbolType": "CROSS",
"Target": {
"LineColor": "DARKGRAY",
"LineWidth": 2,
"EnableAlarmLine": true,
"EnableAlarmLineText": true,
"DisplayString": "Target"
},
"LCL3": {
"LineWidth": 2,
"EnableAlarmLine": true,
"EnableAlarmLineText": true,
"EnableAlarmChecking": false,
"LimitValue": 0.7,
"DisplayString": "LCL"
},
"UCL3": {
"LineWidth": 2,
"EnableAlarmLine": true,
"EnableAlarmLineText": true,
"EnableAlarmChecking": false,
"LimitValue": 0.8,
"DisplayString": "UCL"
}
},
"SpecificationLimits": {
"LowSpecificationLimit": {
"LineWidth": 2,
"EnableAlarmLine": true,
"EnableAlarmLineText": true,
"EnableAlarmChecking": false,
"LimitValue": 0.5,
"DisplayString": "LSL"
},
"HighSpecificationLimit": {
"LineWidth": 2,
"EnableAlarmLine": true,
"EnableAlarmLineText": true,
"EnableAlarmChecking": false,
"LimitValue": 0.9,
"DisplayString": "USL"
}
},
"PlotMeasurementValues": false,
"YAxisLeft": {
"MinValue": 0,
"MaxValue": 1
},
"YAxisRight": {
"MinValue": 0,
"MaxValue": 1
}
},
"SecondaryChartSetup": {
"EnableChart": true,
"FrequencyHistogram": {
"EnableDisplayFrequencyHistogram": true
},
"ControlLimits": {
"Target": {
"DisplayString": "Target",
"EnableAlarmLine": false,
"EnableAlarmLineText": false
},
"LCL3": {
"EnableAlarmLine": false,
"EnableAlarmLineText": false,
"EnableAlarmChecking": false
},
"UCL3": {
"EnableAlarmLine": false,
"EnableAlarmLineText": false,
"EnableAlarmChecking": false
}
},
"YAxisLeft": {
"MinValue": 0,
"MaxValue": 1
},
"YAxisRight": {
"MinValue": 0,
"MaxValue": 1
}
},
"ThirdChartSetup": {
"EnableChart": false,
"ControlLimits": {}
},
"SampleData": {
"SampleIntervalRecords": [{
"BatchCount": 0,
"BatchIDString": "9172",
"TimeStamp": 1568190600790,
"SampleValues": [0.8],
"VariableControlLimits": [0.75, 0.7, 0.8, null, null, null],
"VariableSpecificationLimits": [0.5, 0.9]
}, {
"BatchCount": 1,
"BatchIDString": "74637",
"TimeStamp": 1573412461090,
"Note": "OOC-L",
"SampleValues": [0.6],
"VariableControlLimits": [0.75, 0.7, 0.8, null, null, null],
"VariableSpecificationLimits": [0.5, 0.9],
"PrimaryForceAlarm": "FORCE_LOW"
}, {
"BatchCount": 2,
"BatchIDString": "74638",
"TimeStamp": 1573455660327,
"Note": "OOC-L,\n1 outside control limits",
"SampleValues": [0.5],
"VariableControlLimits": [0.75, 0.7, 0.8, null, null, null],
"VariableSpecificationLimits": [0.5, 0.9],
"PrimaryForceAlarm": "FORCE_LOW"
}]
},
"Annotations": [],
"Methods": {
"AutoCalculateControlLimits": [false, false],
"AutoScaleYAxes": [true, true],
"RebuildUsingCurrentData": true
}
}
}
Go to Top of Page

quinncurtis

1586 Posts

Posted - 11 Nov 2019 :  11:10:57  Show Profile  Reply with Quote
Item 1 (retrieving the current scrollbar position) is not an option in the software. I will investigate what it would take to add the current scrollbar position to one of the few function calls you can make into the library.

Item 2. The Low Control Limit for all charts are always present. The LCL, Target and HCL control limits are added to the charts by default. If you do not set any of those limits, such as the LCL value in your case, it retains the default value of 0.0, and will display at 0.0.
We added a special function though, which you can use to remove the LCL limit from the chart, so that if it is 0.0 it will not show. Search for AutoDeleteControlLimits in the manual, around page 193.
Go to Top of Page

martintijmes

Netherlands
23 Posts

Posted - 13 Nov 2019 :  10:07:44  Show Profile  Reply with Quote
Not sure what you mean, that the LCL is not set. In the JSON there are properties for LCL3 and UCL3. Is that not what you mean?
I do see that there is no LimitValue for the Target in the example.

The text that I'm seeing looks like LSL=0.0 and USL=0.0, not LCL/UCL. But it's not totally clear, since it is rendered on top of each other.

In the below example the chart shows USL, UCL, Target, LCL, LSL. And after calling pushJSONChartUpdate (after changing the chartObject as specified earlier), the chart renders LSL=0.0 and USL=0.0.

{
"StaticProperties": {
"Canvas": {
"Width": 1784,
"Height": 677
},
"DefaultFontName": "Tahoma, Arial, sans-serif",
"DefaultTableFont": {
"Name": "Tahoma, Arial, sans-serif",
"Size": 12,
"Style": "Plain"
},
"SPCChartStrings": {
"DefaultMean": "MEAN",
"DefaultMedian": "MEDIAN",
"DefaultRange": "RANGE",
"DefaultVariance": "VARIANCE",
"DefaultSigma": "SIGMA",
"DefaultSampleValue": "VALUES",
"DefaultAbsRange": "ABS(RANGE)",
"DefaultSum": "SUM",
"TitleHeader": "Characteristic: ",
"ChartNumberHeader": "Chart: ",
"PartNumberHeader": "Material Id: ",
"PartNameHeader": "Material Desc.: ",
"OperationHeader": "Material Id: ",
"MachineHeader": "Entity: ",
"OperatorHeader": "Operator: ",
"DateHeader": "Date: ",
"NotesHeader": "@@Notes@@",
"AlarmHeader": "@@Alarm@@",
"TimeHeader": "@@Time@@"
},
"DefaultAlarmColors": {
"LowAlarm": "0xFF203764",
"HighAlarm": "0xFF203764",
"HighSpecLimit": "0xFFC00000",
"LowSpecLimit": "0xFFC00000"
}
},
"SPCChart": {
"Scrollbar": {
"EnableScrollBar": true,
"ScrollbarPosition": "SCROLLBAR_POSITION_MAX"
},
"TableSetup": {
"EnableProcessCapabilityValues": true,
"EnableCategoryValues": false,
"EnableTotalSamplesValues": true,
"HeaderStringsLevel": "HEADER_STRINGS_LEVEL2",
"TableBackgroundMode": "TABLE_STRIPED_COLOR_BACKGROUND",
"BackgroundColor1": "BEIGE",
"BackgroundColor2": "GHOSTWHITE",
"TableAlarmEmphasisMode": "ALARM_HIGHLIGHT_OUTLINE",
"ChartAlarmEmphasisMode": "ALARM_HIGHLIGHT_SYMBOL",
"EnableNotes": true,
"ChartData": {
"TimeFormat": "TIMEDATEFORMAT_24HM",
"Title": "TS12: OOS2 characteristic (Critical)",
"ChartNumber": "IX + MR",
"PartName": "SFG/COF-FD-CRTNR-RU-FWH",
"Operation": "",
"Machine": "Pack off 3",
"ProcessCapabilitySetup": {
"EnableCPK": false
},
"CustomTimeFormatString": "M/d h:mm a",
"PartNumber": "64100004",
"Operator": null,
"DateString": "11/13/2019",
"CalculatedItemDecimals": 1
}
},
"MiscChartDataProperties": {
"MultiVariableItems": {
"MultiVariableColors": [],
"YAxisMapping": []
},
"Legend": {
"EnableLegend": true,
"LegendStrings": ["char0000136"]
}
},
"Events": {
"EnableDataToolTip": true,
"EnableJSONDataToolTip": true,
"AlarmStateEventEnable": true,
"AlarmTransitionEventEnable": false,
"DataToolTip": {
"EnableCategoryValues": false,
"EnableProcessCapabilityValues": false,
"EnableCalculatedValues": true,
"EnableNotesString": false
},
"NotesToolTip": {
"NotesReadOnly": true
},
"EnableAlarmStatusValues": false
},
"PrimaryChartSetup": {
"FrequencyHistogram": {
"EnableDisplayFrequencyHistogram": true
},
"ControlLimits": {
"OutOfLimitSymbolSize": 12,
"OutOfLimitSymbolType": "CROSS",
"Target": {
"LineColor": "DARKGRAY",
"LineWidth": 2,
"EnableAlarmLine": true,
"EnableAlarmLineText": true,
"DisplayString": "Target"
},
"LCL3": {
"LineWidth": 2,
"EnableAlarmLine": true,
"EnableAlarmLineText": true,
"EnableAlarmChecking": false,
"LimitValue": 4,
"DisplayString": "LCL"
},
"UCL3": {
"LineWidth": 2,
"EnableAlarmLine": true,
"EnableAlarmLineText": true,
"EnableAlarmChecking": false,
"LimitValue": 8,
"DisplayString": "UCL"
}
},
"SpecificationLimits": {
"LowSpecificationLimit": {
"LineWidth": 2,
"EnableAlarmLine": true,
"EnableAlarmLineText": true,
"EnableAlarmChecking": false,
"LimitValue": 2,
"DisplayString": "LSL"
},
"HighSpecificationLimit": {
"LineWidth": 2,
"EnableAlarmLine": true,
"EnableAlarmLineText": true,
"EnableAlarmChecking": false,
"LimitValue": 10,
"DisplayString": "USL"
}
},
"PlotMeasurementValues": false,
"YAxisLeft": {
"MinValue": 1,
"MaxValue": 14
},
"YAxisRight": {
"MinValue": 0,
"MaxValue": 1
}
},
"SecondaryChartSetup": {
"EnableChart": true,
"FrequencyHistogram": {
"EnableDisplayFrequencyHistogram": true
},
"ControlLimits": {
"Target": {
"DisplayString": "Target",
"EnableAlarmLine": false,
"EnableAlarmLineText": false
},
"LCL3": {
"EnableAlarmLine": false,
"EnableAlarmLineText": false,
"EnableAlarmChecking": false
},
"UCL3": {
"EnableAlarmLine": false,
"EnableAlarmLineText": false,
"EnableAlarmChecking": false
}
},
"YAxisLeft": {
"MinValue": 0,
"MaxValue": 1
},
"YAxisRight": {
"MinValue": 0,
"MaxValue": 1
}
},
"ThirdChartSetup": {
"EnableChart": false,
"ControlLimits": {}
},
"Methods": {
"AutoCalculateControlLimits": [false, false],
"AutoScaleYAxes": [false, true],
"RebuildUsingCurrentData": true,
"AutoDeleteControlLimits": {
"LimitValue1": 5,
"ComparisonOperator": "COMPARISON_OP_LESSTHAN_OR_EQ"
}
}
}
}
Go to Top of Page

quinncurtis

1586 Posts

Posted - 13 Nov 2019 :  10:34:57  Show Profile  Reply with Quote
Sorry, I misunderstood and answered assuming LCL limit was the problem. I will took at it again with respect to the LSL USL.
Please answer the following question: Is this a chart with NO data? Because the limits are only drawn for a sample interval if there is data for a sample interval. Every limit is stored for every sample interval, but without data, there is no sample interval to refer to grab the most recent limits. What happens if you add data to the graph?

We added the item 1 in your previous post (Added a scrollbar position property to the GetJSONOverallStatistics function which you can retrieve). Do you feel that is an easier way to implement what you are trying to do, or do you want to continue with item 2?
Go to Top of Page

martintijmes

Netherlands
23 Posts

Posted - 13 Nov 2019 :  11:14:28  Show Profile  Reply with Quote
Ah, sorry. I see I posted the JSON with the SampleData already removed. Just for reference I will post the JSON including SampleData below. A quick test showed me that when I call pushJSONChartUpdate including SampleData, that data is added to the chart, but also still shows the LSL=0.0/USL=0.0 renderend on top of each other (and in addition to the specified limits).

Solution for item 1 is totally fine for me. I already had a routine for that, thus that was in fact my first try.
I just checked my download link, and that still gives me v3.6.4, correct?

{
"StaticProperties": {
"Canvas": {
"Width": 1784,
"Height": 677
},
"DefaultFontName": "Tahoma, Arial, sans-serif",
"DefaultTableFont": {
"Name": "Tahoma, Arial, sans-serif",
"Size": 12,
"Style": "Plain"
},
"SPCChartStrings": {
"DefaultMean": "MEAN",
"DefaultMedian": "MEDIAN",
"DefaultRange": "RANGE",
"DefaultVariance": "VARIANCE",
"DefaultSigma": "SIGMA",
"DefaultSampleValue": "VALUES",
"DefaultAbsRange": "ABS(RANGE)",
"DefaultSum": "SUM",
"TitleHeader": "Characteristic: ",
"ChartNumberHeader": "Chart: ",
"PartNumberHeader": "Material Id: ",
"PartNameHeader": "Material Desc.: ",
"OperationHeader": "Material Id: ",
"MachineHeader": "Entity: ",
"OperatorHeader": "Operator: ",
"DateHeader": "Date: ",
"NotesHeader": "@@Notes@@",
"AlarmHeader": "@@Alarm@@",
"TimeHeader": "@@Time@@"
},
"DefaultAlarmColors": {
"LowAlarm": "0xFF203764",
"HighAlarm": "0xFF203764",
"HighSpecLimit": "0xFFC00000",
"LowSpecLimit": "0xFFC00000"
}
},
"SPCChart": {
"InitChartProperties": {
"SPCChartType": "INDIVIDUAL_RANGE_CHART",
"ChartMode": "Batch",
"NumCategories": 1,
"NumSamplesPerSubgroup": 1,
"NumDatapointsInView": 12,
"NumberAddedVariables": 0
},
"Scrollbar": {
"EnableScrollBar": true,
"ScrollbarPosition": "SCROLLBAR_POSITION_MAX"
},
"TableSetup": {
"EnableProcessCapabilityValues": true,
"EnableCategoryValues": false,
"EnableTotalSamplesValues": true,
"HeaderStringsLevel": "HEADER_STRINGS_LEVEL2",
"TableBackgroundMode": "TABLE_STRIPED_COLOR_BACKGROUND",
"BackgroundColor1": "BEIGE",
"BackgroundColor2": "GHOSTWHITE",
"TableAlarmEmphasisMode": "ALARM_HIGHLIGHT_OUTLINE",
"ChartAlarmEmphasisMode": "ALARM_HIGHLIGHT_SYMBOL",
"EnableNotes": true,
"ChartData": {
"TimeFormat": "TIMEDATEFORMAT_24HM",
"Title": "TS12: OOS2 characteristic (Critical)",
"ChartNumber": "IX + MR",
"PartName": "SFG/COF-FD-CRTNR-RU-FWH",
"Operation": "",
"Machine": "Pack off 3",
"ProcessCapabilitySetup": {
"EnableCPK": false
},
"CustomTimeFormatString": "M/d h:mm a",
"PartNumber": "64100004",
"Operator": null,
"DateString": "11/13/2019",
"CalculatedItemDecimals": 1
}
},
"MiscChartDataProperties": {
"MultiVariableItems": {
"MultiVariableColors": [],
"YAxisMapping": []
},
"Legend": {
"EnableLegend": true,
"LegendStrings": ["char0000136"]
}
},
"Events": {
"EnableDataToolTip": true,
"EnableJSONDataToolTip": true,
"AlarmStateEventEnable": true,
"AlarmTransitionEventEnable": false,
"DataToolTip": {
"EnableCategoryValues": false,
"EnableProcessCapabilityValues": false,
"EnableCalculatedValues": true,
"EnableNotesString": false
},
"NotesToolTip": {
"NotesReadOnly": true
},
"EnableAlarmStatusValues": false
},
"PrimaryChartSetup": {
"FrequencyHistogram": {
"EnableDisplayFrequencyHistogram": true
},
"ControlLimits": {
"OutOfLimitSymbolSize": 12,
"OutOfLimitSymbolType": "CROSS",
"Target": {
"LineColor": "DARKGRAY",
"LineWidth": 2,
"EnableAlarmLine": true,
"EnableAlarmLineText": true,
"DisplayString": "Target"
},
"LCL3": {
"LineWidth": 2,
"EnableAlarmLine": true,
"EnableAlarmLineText": true,
"EnableAlarmChecking": false,
"LimitValue": 4,
"DisplayString": "LCL"
},
"UCL3": {
"LineWidth": 2,
"EnableAlarmLine": true,
"EnableAlarmLineText": true,
"EnableAlarmChecking": false,
"LimitValue": 8,
"DisplayString": "UCL"
}
},
"SpecificationLimits": {
"LowSpecificationLimit": {
"LineWidth": 2,
"EnableAlarmLine": true,
"EnableAlarmLineText": true,
"EnableAlarmChecking": false,
"LimitValue": 2,
"DisplayString": "LSL"
},
"HighSpecificationLimit": {
"LineWidth": 2,
"EnableAlarmLine": true,
"EnableAlarmLineText": true,
"EnableAlarmChecking": false,
"LimitValue": 10,
"DisplayString": "USL"
}
},
"PlotMeasurementValues": false,
"YAxisLeft": {
"MinValue": 0,
"MaxValue": 1
},
"YAxisRight": {
"MinValue": 0,
"MaxValue": 1
}
},
"SecondaryChartSetup": {
"EnableChart": true,
"FrequencyHistogram": {
"EnableDisplayFrequencyHistogram": true
},
"ControlLimits": {
"Target": {
"DisplayString": "Target",
"EnableAlarmLine": false,
"EnableAlarmLineText": false
},
"LCL3": {
"EnableAlarmLine": false,
"EnableAlarmLineText": false,
"EnableAlarmChecking": false
},
"UCL3": {
"EnableAlarmLine": false,
"EnableAlarmLineText": false,
"EnableAlarmChecking": false
}
},
"YAxisLeft": {
"MinValue": 0,
"MaxValue": 1
},
"YAxisRight": {
"MinValue": 0,
"MaxValue": 1
}
},
"ThirdChartSetup": {
"EnableChart": false,
"ControlLimits": {}
},
"SampleData": {
"SampleIntervalRecords": [{
"BatchCount": 0,
"BatchIDString": "37373",
"TimeStamp": 1568972031043,
"Note": "OOS-H,\n1 outside control limits",
"SampleValues": [11],
"VariableControlLimits": [6, 4, 8, null, null, null],
"VariableSpecificationLimits": [2, 10],
"PrimaryForceAlarm": "FORCE_HIGH"
}, {
"BatchCount": 1,
"BatchIDString": "38010",
"TimeStamp": 1568983367917,
"Note": "OOS-H,\n1 outside control limits",
"SampleValues": [15],
"VariableControlLimits": [6, 4, 8, null, null, null],
"VariableSpecificationLimits": [2, 10],
"PrimaryForceAlarm": "FORCE_HIGH"
}, {
"BatchCount": 2,
"BatchIDString": "38017",
"TimeStamp": 1568983442847,
"Note": "OOS-H,\n1 outside control limits",
"SampleValues": [14],
"VariableControlLimits": [6, 4, 8, null, null, null],
"VariableSpecificationLimits": [2, 10],
"PrimaryForceAlarm": "FORCE_HIGH"
}, {
"BatchCount": 3,
"BatchIDString": "38041",
"TimeStamp": 1568983869087,
"Note": "OOS-H,\n1 outside control limits",
"SampleValues": [12],
"VariableControlLimits": [6, 4, 8, null, null, null],
"VariableSpecificationLimits": [2, 10],
"PrimaryForceAlarm": "FORCE_HIGH"
}, {
"BatchCount": 4,
"BatchIDString": "38052",
"TimeStamp": 1568984047347,
"Note": "OOS-H,\n1 outside control limits",
"SampleValues": [20],
"VariableControlLimits": [6, 4, 8, null, null, null],
"VariableSpecificationLimits": [2, 10],
"PrimaryForceAlarm": "FORCE_HIGH"
}, {
"BatchCount": 5,
"BatchIDString": "38075",
"TimeStamp": 1568984514947,
"Note": "OOS-H,\n1 outside control limits",
"SampleValues": [12],
"VariableControlLimits": [6, 4, 8, null, null, null],
"VariableSpecificationLimits": [2, 10],
"PrimaryForceAlarm": "FORCE_HIGH"
}, {
"BatchCount": 6,
"BatchIDString": "38415",
"TimeStamp": 1568990717610,
"Note": "OOS-H,\n1 outside control limits",
"SampleValues": [20],
"VariableControlLimits": [6, 4, 8, null, null, null],
"VariableSpecificationLimits": [2, 10],
"PrimaryForceAlarm": "FORCE_HIGH"
}, {
"BatchCount": 7,
"BatchIDString": "49966",
"TimeStamp": 1569232447050,
"Note": "OOS-H,\n1 outside control limits",
"SampleValues": [14],
"VariableControlLimits": [6, 4, 8, null, null, null],
"VariableSpecificationLimits": [2, 10],
"PrimaryForceAlarm": "FORCE_HIGH"
}]
},
"Annotations": [],
"Methods": {
"AutoCalculateControlLimits": [false, false],
"AutoScaleYAxes": [true, true],
"RebuildUsingCurrentData": true
}
}
}
Go to Top of Page

quinncurtis

1586 Posts

Posted - 13 Nov 2019 :  11:51:41  Show Profile  Reply with Quote
OK, we updated the master file on the server. If you are using a link sent to you from our order system, it should work. If you are using a link from some other source (email from support@quinn-curtis.com) then send an email to support@quinn-curtis.com with a copy of that link and well update that as well.

The current revision is marked 3.6.6 with todays date. The new property is "CurrentScrollPosition" in the JSON returned by the pushGetJSONOverallStatistics function call.
Go to Top of Page

quinncurtis

1586 Posts

Posted - 13 Nov 2019 :  15:07:55  Show Profile  Reply with Quote
I looked at your JSON. The problem is that it is much, much to complicated for the pushJSONChartUpdate method. You seem to be reinitializing everything. It should be used to just update the data, and make a few changes, such as the axis range, which is what you want to do anyway. Here is the modified JSON I created, which can be used in a pushJSONChartUpdate , for a chart based on your original JSON.

{

"SPCChart": {
"Scrollbar": {
"EnableScrollBar": true,
"ScrollbarPosition": "SCROLLBAR_POSITION_MAX"
},
"PrimaryChartSetup": {
"YAxisLeft": {
"MinValue": 0,
"MaxValue": 20
}
},
"SecondaryChartSetup": {
"YAxisLeft": {
"MinValue": 0,
"MaxValue": 2
}
},

"SampleData": {
"SampleIntervalRecords": [{
"BatchCount": 8,
"BatchIDString": "37373",
"TimeStamp": 1569233447050,
"Note": "OOS-H,\n1 outside control limits",
"SampleValues": [11],
"VariableControlLimits": [6, 4, 8, null, null, null],
"VariableSpecificationLimits": [2, 10],
"PrimaryForceAlarm": "FORCE_HIGH"
}, {
"BatchCount": 9,
"BatchIDString": "38010",
"TimeStamp": 1569984367917,
"Note": "OOS-H,\n1 outside control limits",
"SampleValues": [15],
"VariableControlLimits": [6, 4, 8, null, null, null],
"VariableSpecificationLimits": [2, 10],
"PrimaryForceAlarm": "FORCE_HIGH"
}, {
"BatchCount": 10,
"BatchIDString": "38017",
"TimeStamp": 1569985442847,
"Note": "OOS-H,\n1 outside control limits",
"SampleValues": [14],
"VariableControlLimits": [6, 4, 8, null, null, null],
"VariableSpecificationLimits": [2, 10],
"PrimaryForceAlarm": "FORCE_HIGH"
}, {
"BatchCount": 11,
"BatchIDString": "38041",
"TimeStamp": 1569986869087,
"Note": "OOS-H,\n1 outside control limits",
"SampleValues": [12],
"VariableControlLimits": [6, 4, 8, null, null, null],
"VariableSpecificationLimits": [2, 10],
"PrimaryForceAlarm": "FORCE_HIGH"
}, {
"BatchCount": 12,
"BatchIDString": "38052",
"TimeStamp": 1569987047347,
"Note": "OOS-H,\n1 outside control limits",
"SampleValues": [20],
"VariableControlLimits": [6, 4, 8, null, null, null],
"VariableSpecificationLimits": [2, 10],
"PrimaryForceAlarm": "FORCE_HIGH"
}, {
"BatchCount": 13,
"BatchIDString": "38075",
"TimeStamp": 1569988514947,
"Note": "OOS-H,\n1 outside control limits",
"SampleValues": [12],
"VariableControlLimits": [6, 4, 8, null, null, null],
"VariableSpecificationLimits": [2, 10],
"PrimaryForceAlarm": "FORCE_HIGH"
}, {
"BatchCount": 14,
"BatchIDString": "38415",
"TimeStamp": 1569990717610,
"Note": "OOS-H,\n1 outside control limits",
"SampleValues": [20],
"VariableControlLimits": [6, 4, 8, null, null, null],
"VariableSpecificationLimits": [2, 10],
"PrimaryForceAlarm": "FORCE_HIGH"
}, {
"BatchCount": 15,
"BatchIDString": "49966",
"TimeStamp": 1570232447050,
"Note": "OOS-H,\n1 outside control limits",
"SampleValues": [14],
"VariableControlLimits": [6, 4, 8, null, null, null],
"VariableSpecificationLimits": [2, 10],
"PrimaryForceAlarm": "FORCE_HIGH"
}]
},
"Methods": {
"RebuildUsingCurrentData": true
}
}
}
Go to Top of Page

martintijmes

Netherlands
23 Posts

Posted - 14 Nov 2019 :  10:28:15  Show Profile  Reply with Quote
Thanks for looking into this further. Yes, you're right. I see now that it works with a very simple object structure.

In the mean time, I also get the other option working with the current scrollbar position. Thanks for your help!
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