iSPCChart Reference

Related Topics

The SPC chart object can process and display data sets of thousands of observations per tag in a variety of standard Statistical Process Control (SPC) charts.  The supported chart types are listed below in the iSPCChart Types table.

Each SPC chart also includes the following information:

A series of modeless windows may be opened to examine different views of the data while the user is working with the chart.  Modeless windows allow the user to keep the windows open while still interacting with the other views available within the application.  As the user clicks on different points within the chart, the windows update to reveal information specific to that point.

User entered comments may be associated with points within a chart and stored in a central database for future analysis/reference.  In the SPC chart template, the criteria for uniquely identifying a data point must be provided in order to store comments.  The comments are stored against both the chart type and the unique data point identifier.  When viewing a chart, additional characteristics may also be displayed for each point, if they are returned in the data query, to add further context to the view.

Points may also be suppressed, or excluded from the calculations.  In order to suppress points, the chart must be given a name.  The suppressed points are persisted against both the chart name and the  unique data point identifier.  

The unique point identifiers must be present in the query template being used to populate the chart dataset.  The data mapping tab of the iSPCChart template editor allows the user to define the data value to be evaluated as well as other data attributes.  Refer to the iSPCChart Editor Reference for more details.

A full set of data accessors are provided within the applet to allow additional application development around the statistical data sets as required.

iSPCChart Types

Variable Chart Types

Chart Type

Description

XBAR

Plots the mean of the characteristic values in the subgroup

XBAR-MR

Two charts, an XBAR and a Moving Range.  A moving range chart plots the difference between the range value for this subgroup and the range value for the previous subgroup.  This chart is often used with a subgroup size of one, known as an XBAR-Individual Moving Range.

XBAR-RANGE

Two charts, an XBAR and a Range.  A range chart plots the range of the characteristic values within the subgroup (Requires a subgroup greater than 1)

XBAR-SDEV

Two charts, an XBAR and a Standard Deviation.  A standard deviation chart plots the standard deviation of the characteristic values in the subgroup (Requires a subgroup greater than 1)

EWMA

An Exponentially Weighted Moving Average (EWMA) chart plots a weighted average of all past and current observations

EWMA-RANGE

Two charts, an EWMA and a Moving Range.  See XBAR-RANGE above for further reference.

EWMA-SDEV

Two charts, an EWMA and a Standard Deviation.  See XBAR-SDEV above for further reference.

MEDIAN

A median chart plots the median value for the subgroup

MEDIAN-RANGE

Two charts, an EWMA and a Moving Range.  See XBAR-RANGE above for further reference.

HISTOGRAM

A Histogram chart shows the distribution of a process, plotting the relative frequency of an event within a process versus the possible process outcomes.

BOX-WHISKER

 

A Box and Whisker chart is also known as a boxplot.  It provides an alternate visual method of evaluating the spread of data for all visible characteristics. It uses the median set of data, the inter-quartile range and the extreme values to describe pictorially its pattern of variation.

Attribute Chart Types

Chart Type

Description

P

Commonly referred to as a "p" plot, this chart plots the fraction of all defective units per total units in the sample

NP

Commonly referred to as an "np" plot, this chart plots the number of defective units in the sample

C

Commonly referred to as a "c" plot, this chart plots the total number of defects in the sample.

U

Commonly referred to as a "u" plot, this chart plots the average number of defects per unit

iSPCChart Events

In addition to the generally supported applet events, the iChart supports the UpperChartSelectionEvent, UpperChartDoubleClickEvent, LowerChartSelectionEvent, and LowerChartDoubleClickEvent.

These methods may be used in conjunction with the chart component methods to get information about individual chart points or subgroups.  For example, you could use the UpperChartDoubleClickEvent to fire a script function that used the getUpperSelectedPoint() method to find the currently selected point, which you could then use to retrieve specific attribute information about that point.  

To do this, you would create a function reference in the UpperChartDoubleClickEvent, so that the function would be called each time you double-click on the chart.  The getUpperSelectedPoint() method returns the point index for the currently selected point.  Once you have that index, you can ask the chart for data related to the point with the returned index.  This way, you can create simple drill-down data retrieval functions based on individual point selection.

For more information on how to use selection events to make an HTML page more interactive, see the Applet General Reference.  Specific iSPCChart methods and data accessors are referenced below.

Parameter Name

Data Type

Default Value

Comments

General Event Support

 

 

See the section on Linking JavaScript To Applet Events in the Applet General Reference

UpperChartSelectionEvent

String

None

This parameter is used to provide the name of a JavaScript function in a Web page that will be called whenever the user clicks on a point in the upper chart of the iSPCChart applet

UpperChartDoubleClickEvent

String

None

This parameter is used to provide the name of a JavaScript function in a Web page that will be called whenever the user double-clicks on a point in the lower chart of the iSPCChart applet

LowerChartSelectionEvent

String

None

This parameter is used to provide the name of a JavaScript function in a Web page that will be called whenever the user clicks on a point in the upper chart of the iSPCChart applet

LowerChartDoubleClickEvent

String

None

This parameter is used to provide the name of a JavaScript function in a Web page that will be called whenever the user double-clicks on a point in the lower chart of the iSPCChart applet

iSPCChart Symbology

The actual data points on a chart have several visual indications with different meanings, as outlined in the table below:

Symbol Description

Graphic

Meaning

Bulls-eye in middle of point

This is a point that is violating one or more configured alarm conditions

Red X through the point

This is a suppressed point that is being shown on the graph but is not included within the chart calculations

Highlighted outside diameter of point

This is a point that shares the currently selected highlight attribute

Red Flag

This point has at least one comment associated with it.

Yellow Highlighting

OR

This is the currently selected point within the chart

General SPC Chart Features

There are a number of common features shared by each type of SPC Chart.  They are described in the following section.  For information on how to configure the SPC display template to enable these features, refer to the iSPCChart Editor Reference.  Most of the below features are available through the iSPCChart right-click menu.  These features are included within the iSPCChart, and require no application development.

Chart Manipulation

You may zoom in or out, scroll forward and backward through time, and print the chart just as you can with the SAP xMII iChart applet.  Simply use the right-click menu options.

Viewing Additional Point Attributes

There are a number of chart features that enable the user to see more data about the individual chart points.

Both the upper and lower chart have the same menu.  On a point by point basis, you can view information on alarms, attributes, and comments.  You can also remove or add a selected point from the calculations through the Toggle Point Suppression selection.  Each of these features is based on a single point.  First the user must select a specific point within the chart.  The point will be highlighted as shown above in the Symbology section.  

By selecting Toggle Point Suppression, the currently selected point will either be removed from the calculation, or added back in.  A point that is not included in the calculation has a X through it.

When you choose Alarms, Attributes, or Comments from the menu, a window appears.  There are no restrictions on the number of alarms, attributes or comments for an individual point.  Each window may be opened independently, or all at once.  The windows will stay on top of the browser instance, and you may still interact with the chart while the windows are open.  This allows the user to select different points while the windows are open and see any relevant data about that point.

In the upper left hand corner of the chart, point attributes are also shown for the selected point.  An attribute is any returning value in the query result set that you wish to view other than the value for the calculation.  See the iSPCChart Editor Reference for information on how to configure attributes.  

Documenting SPC Points

You can add comments to chart points through the chart right-click menu.  With the Comments window open, press the Add New button, and you may enter a new comment.  If you are using personalization, the user login name will automatically be recorded with the comment.  As you click on new points, any comments that have been added to relevant point will appear in the Comments window.  If a point has comments associated with it, a flag will appear next to the point.

Comments are stored in the QualityPortal database, and are associated with particular data points.  Since the comments are linked to the data points, they are available for other users to see for the same chart type.  This allows out of the box collaboration on quality analyses.  In order to use comments in this way, each point must be uniquely identified, so that if it appears again on the same chart type, the previously recorded comments are viewable.

To uniquely identify points, go to the Data Mapping tab of the iSPCChart Editor.

Rule Violations

Points that are in violation of rules configured for the chart are shown with a red bulls-eye.  Use the Alarms selection on the right-click menu to view rule violation details.  TO configure rule violations, see the Alarms tab of the iSPCChart Editor.

Data Views

Raw Data Detail shows the underlying query results, statistical calculations, control and specification limits, and chart alarms in HTML.  This may be printed for reference from the browser.  SPC Results Detail is similar to the Raw Data Detail except it shows the chart points (subgroup values, as opposed to individual query returning values) .  Summary Statistics brings up a modal window with the results of the result set's relevant statistical calculations.  Upper and Lower Chart Data Points bring back the chart subgroup point values along with the control limit values.  You may also save the query result set or the SPC calculated data set in comma separated value (CSV) format.

iSPCChart Methods

Below is a listing of iSPCChart specific methods.  Like all SAP xMII applets, the SPC chart supports the same set of Base Methods as the other objects.  The iSPCChartComponent methods are described further below in this section.  Refer to the SAP xMII Applet Object Model  reference for a general description of how to interact with the applets at runtime with Web script.

iSPCChartComponent getChartObject()

This method is used to obtain a reference to the underlying chart display object (the iSPCChartComponent class).  The methods for the iSPCChartComponent are described later in this document (see iSPCChartComponent Methods)

void updateChart(boolean bReloadData)

This method is used to update the chart contents.  The parameter indicates whether or not to re-read the underlying data.  This method differs from the refresh() method in the case where the underlying query is "time-based".  In the case of a time-based query, the refresh() method will update the start and end date based on the current time less the duration/duration units.  The updateChart method will not change the start and end dates.

void doPrint()

This method is used to pop up an HTML page containing a GIF representation of the current chart, suitable for printing.

void showUpperChartAlarms()

Same functionality as the right-click menu to open the alarm window for the upper chart.

void showUpperChartPoints()

Same functionality as the right-click menu to show the Upper Chart Data Points.

void showUpperChartComments()

Same functionality as the right-click menu to show the comments for the upper chart.

void showUpperChartAttributes()

Same functionality as the right-click menu to show the attribute window for the upper chart.

void showLowerChartAlarms()

Same functionality as the right-click menu to open the alarm window for the lower chart.

void showLowerChartPoints()

Same functionality as the right-click menu to show the Lower Chart Data Points.

void showLowerChartComments()

Same functionality as the right-click menu to show the comments for the lower chart.

void showLowerChartAttributes()

Same functionality as the right-click menu to show the attribute window for the lower chart.

void showSummaryStatistics()

Same functionality as the right-click menu to show the relevant statistical calculations for the chart type.

void saveSPCAsCSVFile()

Same functionality as the right-click menu to save the SPC calculation data set.

showSPCDetail()

This opens a new window with the full details of the SPC calculation data set, including raw data, in HTML.

showSPCXMLDetail()

Same as above, but in XML format.

setUpperSelectedPoint(int nPoint)

setLowerSelectedPoint(int nPoint)

setUpperSelectedPointByID(String sID)

setLowerSelectedPointByID(String sID)

int getUpperPointByID(String sID)

int getLowerPointByID(String sID)

iSPCChartComponent Parameters

iSPCChartComponent General Parameters

Parameter Name

Data Type

Default Value

Comments

ChartName

String

None

User given name for chart instance.  May be used as a parameter to retrieve control and specification limits.  Different than Chart Title.

ChartType

String

None

SPC analysis and chart type (see above descriptions)

DateFormat

String

MM/dd/yy HH:mm:ss

Default format for dates

NumberFormat

String

0.00

Default format for numbers

Title

String

None

Chart Title

TitleColor

Color

#FFFFFF

Chart Title Color

MainBackgroundColor

Color

#404040

 

MainBorderColor

Color

#000000

 

TitleFontFace

String

Helvetica

 

TitleFontSize

Integer

12

 

TitleFontStyle

Integer

3

 

ChartMargin

Integer

32

 

MarkerSize

Integer

5

 

ShowTitle

Boolean

true

 

ShowLegend

Boolean

true

 

ShowXAxis

Boolean

true

 

ShowYAxis

Boolean

true

 

ShowTimeControl

Boolean

true

 

ShowMouseTracking

Boolean

true

 

ShowCommentFlag

Boolean

false

Show comment flag for points that have comments associated with them.

ShowSuppressedPoints

Boolean

false

Show points that are not included in the statistical calculations (suppressed points)

ShowLimitTransitions

Boolean

false

The option to ShowLimitTransitions controls the appearance of a vertical bar whenever limits change.  The color of this vertical bar is controlled by the Centerline (CL) color on the chart.

ReversePointOrder

Boolean

false

When set to true, the data points being returned by the query will be used and displayed in reverse order.  This parameter can be quite useful for time series data sorted descending by time that is to be displayed chronologically to line up with queried control limits.

SubgroupSize

Integer

1

Number of raw data points to be included in each chart point.  Refer to the Chart Type details for specific requirements.

ToleranceType

Integer

0

Unilateral Tolerance type.  0=bilateral tolerance; 1=High, or upper unilateral tolerance, the target value to the upper specification limit; -1=Low, or lower unilateral tolerance, the target value to the lower specification

Control Limit Parameters

Parameter Name

Data Type

Default Value

Comments

UpperLCL

Floating Point

0.0

Upper Chart Lower Control Limit

UpperCL

Floating Point

0.0

Upper Chart Control Limit Centerline

UpperUCL

Floating Point

0.0

Upper Chart Upper Control Limit

UpperControlLimitSource

String

None

This is a reference to an SAP xMII Query Template defining the location of the control limits for this chart template.  The Limit data must be returned in dataset format with the columns in the following order:  Effectivity Date (datetime datatype), LCL (number datatype), Target (number datatype), UCL (number datatype).  The result set may be multi-row, with the effectivity date used to determine which set of limits to use based on the datetime value of the data being evaluated.

UpperControlLimitParam.1

String

[CHARTNAME]

Query Template Parameter that may be used with the UpperControlLimitSource query.  The default value is [CHARTNAME].  This is a keyword that SAP xMII will use to replace the token (value within []) value with the name given to this chart on the General Tab of the Template Editor.

UpperControlLimitParam.2

String

[CHARTTYPE]

Query Template Parameter that may be used with the UpperControlLimitSource query.  The default value is [CHARTTYPE].  This is a keyword that SAP xMII will use to replace the token (value within []) value with the chart type selected on the General Tab of the Template Editor.

UpperControlLimitParam.3

String

None

Query Template Parameter that may be used with the UpperControlLimitSource query

UpperControlLimitParam.4

String

None

Query Template Parameter that may be used with the UpperControlLimitSource query

UpperControlLimitParam.5

String

None

Query Template Parameter that may be used with the UpperControlLimitSource query

UpperControlLimitParam.6

String

None

Query Template Parameter that may be used with the UpperControlLimitSource query

UpperControlLimitParam.7

String

None

Query Template Parameter that may be used with the UpperControlLimitSource query

UpperControlLimitParam.8

String

None

Query Template Parameter that may be used with the UpperControlLimitSource query

UpperLCLColumn

 

 

If the data query also returns the control limits, you need to identify the columns in the data query that represent the limits.  Using this feature can improve performance, because additional queries do not have to be run the return the limits.

UpperCLColumn

 

 

See UpperLCLColumn above

UpperUCLColumn

 

 

See UpperLCLColumn above

UpperCalculateControlLimits

Boolean

false

Calculate Control Limits based on record set provided within chart for the upper chart

LowerLCL

Floating Point

0.0

Lower Chart Lower Control Limit

LowerCL

Floating Point

0.0

Lower Chart Control Limit Centerline

LowerUCL

Floating Point

0.0

Lower Chart Upper Control Limit

LowerControlLimitSource

String

None

This is a query reference to the location of the control limits for the lower chart.  The Limit data must be returned in dataset format with the columns in the following order:  Effectivity Date (datetime datatype), LCL (number datatype), Target (number datatype), UCL (number datatype).  The result set may be multi-row, with the effectivity date used to determine which set of limits to use based on the datetime value of the data being evaluated.

LowerControlLimitParam.1

String

[CHARTNAME]

Query Template Parameter that may be used with the LowerControlLimitSource query.  The default value is [CHARTNAME].  This is a keyword that SAP xMII will use to replace the token (value within []) value with the name given to this chart on the General Tab of the Template Editor.

LowerControlLimitParam.2

String

[CHARTTYPE]

Query Template Parameter that may be used with the LowerControlLimitSource query.  The default value is [CHARTTYPE].  This is a keyword that SAP xMII will use to replace the token (value within []) value with the chart type selected on the General Tab of the Template Editor.

LowerControlLimitParam.3

String

None

Query Template Parameter that may be used with the LowerControlLimitSource query

LowerControlLimitParam.4

String

None

Query Template Parameter that may be used with the LowerControlLimitSource query

LowerControlLimitParam.5

String

None

Query Template Parameter that may be used with the LowerControlLimitSource query

LowerControlLimitParam.6

String

None

Query Template Parameter that may be used with the LowerControlLimitSource query

LowerControlLimitParam.7

String

None

Query Template Parameter that may be used with the LowerControlLimitSource query

LowerControlLimitParam.8

String

None

Query Template Parameter that may be used with the LowerControlLimitSource query

LowerLCLColumn

String

None

If the data query also returns the control limits, you need to identify the columns in the data query that represent the limits.  Using this feature can improve performance, because additional queries do not have to be run the return the limits.

LowerCLColumn

String

None

See LowerLCLColumn above

LowerUCLColumn

String

None

See LowerLCLColumn above

LowerCalculateControlLimits

Boolean

false

Calculate Control Limits based on record set provided within chart for the lower chart

Specification Limit Parameters

Parameter Name

Data Type

Default Value

Comments

LSL

Floating Point

0.0

Lower Specification Limit

Target

Floating Point

0.0

Specification Target

USL

Floating Point

0.0

Upper Specification Limit

SpecificationLimitSource

String

None

This is a query reference to the location of the specification limits for this chart template.  The specification data must be returned in dataset format with the columns in the following order:  Effectivity Date (datetime datatype), LSL (number datatype), Target (number datatype), USL (number datatype).  The result set may be multi-row, with the effectivity date used to determine which set of limits to use based on the datetime value of the data being evaluated.

SpecificationLimitParam.1

String

[CHARTNAME]

Query Template Parameter that may be used with the SpecificationLimitSource query.  The default value is [CHARTNAME].  This is a keyword that SAP xMII will use to replace the token (value within []) value with the name given to this chart on the General Tab of the Template Editor.

SpecificationLimitParam.2

String

[CHARTTYPE]

Query Template Parameter that may be used with the SpecificationLimitSource query.  The default value is [CHARTTYPE].  This is a keyword that SAP xMII will use to replace the token (value within []) value with the chart type selected on the General Tab of the Template Editor.

SpecificationLimitParam.3

String

None

Query Template Parameter that may be used with the SpecificationLimitSource query

SpecificationLimitParam.4

String

None

Query Template Parameter that may be used with the SpecificationLimitSource query

SpecificationLimitParam.5

String

None

Query Template Parameter that may be used with the SpecificationLimitSource query

SpecificationLimitParam.6

String

None

Query Template Parameter that may be used with the SpecificationLimitSource query

SpecificationLimitParam.7

String

None

Query Template Parameter that may be used with the SpecificationLimitSource query

SpecificationLimitParam.8

String

None

Query Template Parameter that may be used with the SpecificationLimitSource query

LSLColumn

String

None

If the data query also returns the specification limits, you need to identify the columns in the data query that represent the limits.  Using this feature can improve performance, because additional queries do not have to be run the return the limits.

TargetColumn

String

None

See LSLColumn above

USLColumn

String

None

See LSLColumn above

Alarm Parameters

Parameter Name

Data Type

Default Value

Comments

UpperWEControlLimitAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

UpperWESpecificationLimitAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

UpperWEAlternatingAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

UpperWERunAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

UpperWETrendAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

UpperWEZoneAAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

UpperWEZoneBAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

UpperWEInsideZoneCAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

UpperWEOutsideZoneCAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

UpperWESigmaDifferentAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

LowerWEControlLimitAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

LowerWESpecificationLimitAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

LowerWEAlternatingAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

LowerWERunAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

LowerWETrendAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

LowerWEZoneAAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

LowerWEZoneBAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

LowerWEInsideZoneCAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

LowerWEOutsideZoneCAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

LowerWESigmaDifferentAlarmEnabled

Boolean

false

Enable or Disable this rule to be applied to the chart dataset

WEControlLimitAlarmLimit

Integer

1

'n' points out of the length outside of the control limit

WEControlLimitAlarmLength

Integer

1

 

WESpecificationLimitAlarmLimit

Integer

1

 

WESpecificationLimitAlarmLength

Integer

1

 

WEAlternatingAlarmLimit

Integer

14

 

WEAlternatingAlarmLength

Integer

14

 

WERunAlarmLimit

Integer

9

 

WERunAlarmLength

Integer

9

 

WETrendAlarmLimit

Integer

6

 

WETrendAlarmLength

Integer

6

 

WEZoneAAlarmLimit

Integer

2

 

WEZoneAAlarmLength

Integer

3

 

WEZoneBAlarmLimit

Integer

4

 

WEZoneBAlarmLength

Integer

5

 

WEInsideZoneCAlarmLimit

Integer

15

 

WEInsideZoneCAlarmLength

Integer

15

 

WEOutsideZoneCAlarmLimit

Integer

8

 

WEOutsideZoneCAlarmLength

Integer

8

 

WESigmaDifferentAlarmLimit

Integer

1

 

WESigmaDifferentAlarmLength

Integer

1

 

Legend Parameters

Parameter Name

Data Type

Default Value

Comments

LegendFontFace

String

Helvetica

 

LegendFontSize

Integer

10

 

LegendFontStyle

Integer

0

 

LegendBackgroundColor

Color

#404040

 

LegendBorderColor

Color

#FFFFFF

 

LegendLabelColor

Color

#FFFFFF

 

LegendHeight

Integer

0

 

LegendWidth

Integer

16

 

Axes Parameters

Parameter Name

Data Type

Default Value

Comments

YAxisNumberFormat

Floating Point

0.00

 

YAxisWidth

Integer

8

 

YAxisThreeD

Boolean

true

 

YAxisTickColor

Color

#FFFFFF

 

YAxisTickHighlightColor

Color

#000000

 

YAxisLabelColor

Color

#FFFFFF

 

YAxisShowTicks

Boolean

true

 

YAxisShowLabels

Boolean

true

 

YAxisMajorTickCount

Integer

10

 

YAxisMinorTickCount

Integer

2

 

YAxisTicksPerLabel

Integer

5

 

YAxisFontFace

String

Helvetica

 

YAxisFontSize

Integer

10

 

YAxisFontStyle

Integer

0

 

XAxisNumberFormat

Floating Point

0

 

XAxisThreeD

Boolean

true

 

XAxisTickColor

Color

#FFFFFF

 

XAxisTickHighlightColor

Color

#000000

 

XAxisLabelColor

Color

#FFFFFF

 

XAxisTicksPerLabel

Integer

1

 

XAxisLabelDepth

Integer

1

 

XAxisFontFace

String

Helvetica

 

XAxisFontSize

Integer

10

 

XAxisFontStyle

Integer

0

 

DataMapping Parameters

Parameter Name

Data Type

Default Value

Comments

XAxisLabelAttribute

String

None

Column name to be used as the XAxis Label

AttributeColumns

String

None

Comma separated list of columns to be used as data attributes

ValueColumns

String

None

Name of column to be used for statistical analysis

TimestampColumn

String

None

Name of column representing date-time series

IDColumns

String

None

Comma separated list of columns to be used unique point identifiers.  This is used to store and retrieve comments

HighlightAttributeName

String

None

Default column to use as highlight-able attribute

HighlightAttributeValue

String

None

Default value to highlight on the chart

MouseOverAttributeName

String

None

Default attribute to show value of on mouseover.  Note: This attribute must be referenced in the AttributeColumns list.

Upper Chart Parameters

Parameter Name

Data Type

Default Value

Comments

UpperMinRange

Floating Point

0.0

 

UpperMaxRange

Floating Point

100.0

 

UpperAutoScale

Boolean

true

 

UpperZeroBasedScale

Boolean

false

 

UpperUseServerScaling

Boolean

false

 

UpperUserLSL

Floating point

0.0

 

UpperUserTarget

Floating point

0.0

 

UpperUserUSL

Floating point

0.0

 

UpperChartBackgroundColor

Color

#000000

 

UpperChartBorderColor

Color

#FFFFFF

 

UpperLineColor

Color

#00FF00

 

UpperCenterlineColor

Color

#00FFFF

 

UpperBarColor

Color

#00FF00

 

UpperMarkerColor

Color

#00FF00

 

UpperSelectedMarkerColor

Color

#FFFF00

 

UpperHighlightedMarkerColor

Color

#CC66CC

 

UpperAlarmsColor

Color

#FF0000

 

UpperInnerLimitColor

Color

#C0C0C0

 

UpperWarningLimitColor

Color

#C0C0C0

 

UpperControlLimitColor

Color

#FFAFAF

 

UpperSpecificationLimitColor

Color

#FFFF00

 

UpperUserTargetColor

Color

#DC143C

 

UpperUserSpecificationLimitColor

Color

#FF8C00

 

UpperTargetColor

Color

#FFFFFF

 

UpperShowControlLimits

Boolean

true

 

UpperShowSpecificationLimits

Boolean

true

 

UpperShowWarningLimits

Boolean

false

 

UpperShowInnerLimits

Boolean

false

 

UpperShowUserSpecificationLimits

Boolean

false

 

UpperShowUserTarget

Boolean

false

 

UpperShowRegions

Boolean

false

This parameter colors the inner and warning region backgrounds to the colors chosen for the inner and warning limit lines.  The UpperShowWarningLimits and/or the UpperShowInnerLimits must be set true for the chart region backgrounds to be changed.

UpperShowTicks

Boolean

true

 

UpperShowLabels

Boolean

true

 

Lower Chart Parameters

Parameter Name

Data Type

Default Value

Comments

LowerMinRange

Floating Point

0.0

 

LowerMaxRange

Floating Point

100.0

 

LowerAutoScale

Boolean

true

 

LowerZeroBasedScale

Boolean

false

 

LowerUseServerScaling

Boolean

false

 

LowerUserLSL

Floating point

0.0

 

LowerUserTarget

Floating point

0.0

 

LowerUserUSL

Floating point

0.0

 

LowerChartBackgroundColor

Color

#000000

 

LowerChartBorderColor

Color

#FFFFFF

 

LowerLineColor

Color

#00FF00

 

LowerCenterlineColor

Color

#00FFFF

 

LowerBarColor

Color

#00FF00

 

LowerMarkerColor

Color

#00FF00

 

LowerSelectedMarkerColor

Color

#FFFF00

 

LowerHighlightedMarkerColor

Color

#CC66CC

 

LowerAlarmsColor

Color

#FF0000

 

LowerInnerLimitColor

Color

#C0C0C0

 

LowerWarningLimitColor

Color

#C0C0C0

 

LowerControlLimitColor

Color

#FFAFAF

 

LowerSpecificationLimitColor

Color

#FFFF00

 

LowerTargetColor

Color

#FFFFFF

 

LowerUserSpecificationLimitColor

Color

#FF8C00

 

LowerUserTargetColor

Color

#DC143C

 

LowerShowControlLimits

Boolean

true

 

LowerShowSpecificationLimits

Boolean

true

 

LowerShowWarningLimits

Boolean

false

 

LowerShowInnerLimits

Boolean

false

 

LowerShowUserSpecificationLimits

Boolean

false

 

LowerShowUserTarget

Boolean

false

 

LowerShowRegions

Boolean

false

This parameter colors the inner and warning region backgrounds to the colors chosen for the inner and warning limit lines.  The LowerShowWarningLimits and/or the LowerShowInnerLimits must be set true for the chart region backgrounds to be changed.

LowerShowTicks

Boolean

true

 

LowerShowLabels

Boolean

false

 

Behavior Parameters

Parameter Name

Data Type

Default Value

Comments

EnableMenu

Boolean

true

Enable or disable the right-click menu

EnableSaveAs

Boolean

true

Enable or disable the ability to save data to CSV

EnableShowDetail

Boolean

true

Enable or disable the ability to show data details

EnableQueryProperties

Boolean

true

Enable or disable the ability to edit tag query parameters

EnableDoubleClickRefresh

Boolean

true

Enable or disable the refresh chart on a double-click in the chart area

EnableAutoRefresh

Boolean

true

Enable or disable the auto refresh capability

EnableItemSelection

Boolean

true

Enable or disable the ability to select an individual chart point

EnableComments

Boolean

true

Enable or disable the ability to enter comments

EnablePointSuppression

Boolean

true

Enable or disable the ability to suppress data points

Chart Specific Parameters

Chart Type

Parameter Name

Data Type

Default Value

Comments

Attribute

SampleSizeColumn

String

None

 

Attribute

SampleSize

Integer

100

Size of the sample from which the defects are being counted

Attribute

USL

Integer

1

Also referred to as the Reject Limit, this is the number of rejects before a lot is considered defective

Box & Whisker

BoxWhiskerType

String

QUARTILE

QUARTILE = quartile based separations, SIGMA = standard deviation based separations

Box & Whisker

BoxWhiskerCenterType

String

MEAN

MEAN = Mean centerline, MEDIAN = Median value centerline

Box & Whisker

BoxLowerLimit

Floating Point

25.0

Lower Point for box (typically the first quartile)

Box & Whisker

BoxUpperLimit

Floating Point

75.0

Upper Point for box (typically the third quartile)

Box & Whisker

WhiskerLowerLimit

Floating Point

0.0

Lower Whisker point, typically 0(%)

Box & Whisker

WhiskerUpperLimit

Floating Point

100.0

Upper Whisker point, typically 100(%)

Histogram

HistogramSigmaLimits

Boolean

false

SigmaLimits is used to tell the histogram to calculate bucket sizes slightly differently.

Histogram

HistogramCellCount

Integer

10

This parameter controls the number of bars/buckets in the histogram

EWMA

Lambda

Floating Point

1.0

Lambda is sometimes called the Smoothing Parameter.  It is used to weight the data when computing a moving average. This value must be between 0 and 1. The EWMA chart is particularly effective in detecting small process shifts. The choice for the value lambda is related to the size of shift you are trying to detect. The general rule of thumb is to use smaller values of lambda to detect smaller process shifts. Values between .05 & .25 work well, with values of .08, .1 & .15 being popular choices.

Refresh Parameters

Please refer to the Applet General Reference for details on the Refresh Parameters.

iSPCChartComponent  Object Methods

SPC Component Methods of Note

Toggling Suppression

void toggleUpperSuppressionFlag(int PointNumber)

This method will change the indicated point's suppression flag boolean state in the upper chart.

void toggleLowerSuppressionFlag(int PointNumber)

This method will change the indicated point's suppression flag boolean state in the lower chart.

Accessors for Summary Statistics

double getStatisticsItem(String StatsItemName)

Returns a floating point number representing the statistical value specified by the passed in string.

double getCalculatedUpperLCL()

Returns a floating point number representing the upper chart's calculated lower control limit.

double getCalculatedUpperCL()

Returns a floating point number representing the upper chart's calculated centerline.

double getCalculatedUpperUCL()

Returns a floating point number representing the upper chart's calculated upper control limit.

double getCalculatedLowerLCL()

Returns a floating point number representing the lower chart's calculated lower control limit.

double getCalculatedLowerCL()

Returns a floating point number representing the lower chart's calculated centerline.

double getCalculatedLowerUCL()

Returns a floating point number representing the lower chart's calculated upper control limit.

Accessors for Point Data Values, ID's, Attributes, and Alarms

int getUpperSelectedPoint()

This returns the index for the currently selected point on the upper chart.  Use this with other get statements to return point, attribute, or alarm values for points at a specific index.

int getLowerSelectedPoint()

This returns the index for the currently selected point on the lower chart.  Use this with other get statements to return point, attribute, or alarm values for points at a specific index.

double getUpperDataValueAt(int PointNumber)

Returns a floating point number representing the value of the point at the indicated index for the upper chart (or the only chart if there is a single chart).

String getUpperIDAt(int PointNumber)

Returns a string representing the concatenated value of the unique identifier values for the point at the indicated index for the upper chart (or the only chart if there is a single chart).

int getUpperAttributeCount()

Returns an integer for the number of Attribute columns for the upper chart (or the only chart if there is a single chart).

String getUpperAttributeValueAt(int PointNumber, int AttributeNumber)

Returns a string representing the attribute column value for the point at the indicated index and the indicated Attribute index (or the only chart if there is a single chart).

String getUpperAttributeNameAt(int AttributeNumber)

Returns a string representing the attribute column name for the indicated Attribute index for the upper chart (or the only chart if there is a single chart).

String getUpperAttributeAt(int PointNumber, String AttributeName)

Returns a string representing the attribute column value for the point at the indicated index and the indicated Attribute column name (or the only chart if there is only a single chart).

int getUpperAlarmCount(int PointNumber)

Returns an integer for the number of alarms for the point at the indicated index for the upper chart (or the only chart if there is only a single chart).

String getUpperAlarmAt(int PointNumber, int AlarmNumber)

Returns a string representing the rule violation message for the point at the indicated index and the indicated alarm number for the upper chart (or the only chart if there is only a single chart) - (there may be multiple alarms for a single point).

double getLowerDataValueAt(int PointNumber)

See getUpperDataValueAt

String getLowerIDAt(int PointNumber)

See getUpperIDAt

int getLowerAttributeCount()

See getUpperAttributeCount

String getLowerAttributeValueAt(int PointNumber, int AttributeNumber)

See getUpperAttributeValueAt

String getLowerAttributeNameAt(int AttributeNumber)

See getUpperAttributeNameAt

String getLowerAttributeAt(int PointNumber, String AttributeName)

See getUpperAttributeAt

int getLowerAlarmCount(int PointNumber)

See getUpperAlarmCount

String getLowerAlarmAt(int PointNumber, int AlarmNumber)

See getUpperAlarmAt

String getUpperChartType(String ChartType)

Returns a string representing the upper chart.  Example: for a XBAR-MR, this method returns XBAR.

String getLowerChartType(String ChartType)

Returns a string representing the lower chart.  Example: for an XBAR-MR chart , this method returns MR, and for single charts such as XBAR or EWMA, this method returns an empty string.

int getUpperNumberOfDataPoints()

Returns the number of points in the upper chart dataset (subgroups points, not the raw data).

int getLowerNumberOfDataPoints()

Returns the number of points in the lower chart dataset (subgroups points, not the raw data).

Comment Related Accessors

boolean isUpperHasComments(int PointNumber)

Returns a true or false depending on whether the indicated chart point has a comment associated with it.

boolean isLowerHasComments(int PointNumber)

Returns a true or false depending on whether the indicated chart point has a comment associated with it.

Control and Specification Limit Convenience Methods

The following methods have been added to allow easy retrieval of control and specification values for specific points, since these values can change over the x-axis of a chart:

getUpperLCLAt(index)
getUpperCLAt(index)
getUpperUCLAt(index)
getUpperLSLAt(index)
getUpperTargetAt(index)
getUpperUSLAt(index)
getLowerLCLAt(index)
getLowerCLAt(index)
getLowerUCLAt(index)
getLowerLSLAt(index)
getLowerTargetAt(index)
getLowerUSLAt(index)

All these methods return a floating point data type, for the specific point index that is passed in.  You can get the index for the selected point(s) by using the getUpperSelectedPoint()  or getLowerSelectedPoint() methods described above.

Complete Method Reference

All chart properties are accessible via "get" and "set" methods.  To retrieve a specific chart attribute, use the get method.  Values may be set to a specific value via the set method.  All the chart properties are listed above.  Use the property name in the set or get method.  The only exception to this rule is for boolean data types.  To get a boolean return, you must use an "is" method followed by the attribute name.  Boolean attributes still use the "set" method.

For example, if you wish to change the subgroup size via JavaScript, lookup the subgroup size property in the above tables (see SubgroupSize in the iSPCChartComponent General Properties1 iSPCChartComponent General Properties table above).  Note that the datatype is an int (32 bit signed integer).  The method signature is as shown below:

void setSubgroupSize(int newval)

Note that the SubgroupSize property is a chart object property.  You would need to use the applet.getChartObject method to retrieve the chart component (see above).  Then, to set the SubgroupSize value to five (5), you use the set keyword in front of the property name, passing in the correct datatype as shown below:

<iSPCChartComponent>.setSubgroupSize(5)

To retrieve the current value, the same syntax applies, except you use the get keyword.  The method signature is as shown below:

int getSubgroupSize()

To retrieve the Subgroup size into a variable within a script function, you would enter a line similar to the following:

<varname> = <iSPCChartComponent>.getSubgroupSize()