Time Series and Attributes Controls


Enable/Disable Run Rule

This page describes how to enable/disable rules of the time series and attributes controls. The time series controls are:

The rules for the time series controls are located at the series and limit range level. The rules for the attributes series controls are located at the series level and the controls are:

A rule of the controls is of the following type:

and the property below is used to enable/disable a rule:

The first step is to include the necessary namespaces for the controls and add a new time series or add a new attributes series.

Enable a Rule

Below, we will enable the first rule of an Individuals series (named isSeries in the examples below). The first rule detects if any samples are above the UCL or below the LCL. The built-in rules are described here. All of the rules are disabled by default. The process is similar for the other charts listed above:

[Visual Basic]
' Enable the first rule
isSeries.Rules(0).DoRule = True

[Visual C#]
// Enable the first rule
isSeries.Rules[0].DoRule = true;

After the rule has been enabled, the resulting chart should look similar to the following:

Individuals chart with first rule enabled