Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Javascript/Typescript
 QCSPCChart for Javascript/Typescript
 VariableSpecificationLimits

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
ryanvs Posted - 27 Jun 2023 : 11:04:42
I am investigating the effort to upgrade from GWT to TS. In the GWT version, the 'chartdefEnhExamples.js' has a configuration with "VariableSpecificationLimits". This feature is used heavily in my existing project, but I don't see an example of the TS version with the feature and I can't find it in the documentation either. This is critical in order to upgrade. The VariableControlLimits feature is also used significantly, and I do see examples of that.
1   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 27 Jun 2023 : 16:48:48
At any point in time, you can set (change) the existing specification limits using the chartData.setSpecLimits function, seen below near the bottom. Only the spec limit values going forward are affected, previous spec limit values show their original values. This is a simple modification to the VariableControlCharts.ts BuildXBarSigmaChart example.

let chartdata: QCSPCChartTS.SPCControlChartData | null = xbarsigmachart.ChartData;
.
.
.
let lowspecattrib: QCSPCChartTS.ChartAttribute = QCSPCChartTS.ChartAttribute.newChartAttribute3(QCSPCChartTS.ChartColor.GREEN, 3, QCSPCChartTS.ChartConstants.LS_DASH_8_4);
let upperspecattrib: QCSPCChartTS.ChartAttribute = QCSPCChartTS.ChartAttribute.newChartAttribute3(QCSPCChartTS.ChartColor.ORANGE, 3, QCSPCChartTS.ChartConstants.LS_DASH_8_4);

primarychart.addSpecLimit(QCSPCChartTS.SPCChartObjects.SPC_LOWER_SPEC_LIMIT, 23, "L SPEC", lowspecattrib);
primarychart.addSpecLimit(QCSPCChartTS.SPCChartObjects.SPC_UPPER_SPEC_LIMIT, 37, "H SPEC", upperspecattrib);

.
.
.


let numssampleintervals: number = 100;
let chartmean: number = 30;
let chartsigma: number = 5;



this.SimulateData(xbarsigmachart, numssampleintervals, chartmean, chartsigma);

if (chartdata) {
chartdata.setSpecLimits(15, 45);
}

this.SimulateData(xbarsigmachart, numssampleintervals, chartmean, chartsigma);

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07