Time Series Controls
Add a New Sample to a Subgroup
Samples for the subgroup based control charts must be added to a subgroup.
The time series controls of the Silverlight Analytics package that are based on subgroups include the following:
The series classes of these respective charts are:
The subgroup classes are:
and the sample classes are:
The first step is to include the necessary namespace
for the controls, add a new series, and add a new subgroup.
Add a Sample to a Subgroup
Below, we will add a sample to a Xbar subgroup (named xsSubgroup in the examples below)
and to a Xbar series (named xsSeries in the
examples below). The process is similar for the other charts listed above:
[Visual Basic]
' Create a new sample
Dim xsSample As New XbarSample(0.091)
' Add the sample to the subgroup
xsSubgroup.Add(xsSample)
' An
alternative is to add the sample directly to the subgroup
xsSubgroup.Add(0.877)
' Another alternative is to add the sample directly to the series at the ith
(0 below) subgroup
xsSeries(0).Add(0.775)
[Visual C#]
// Create a new sample
XbarSample xsSample = new XbarSample(0.091);
// Add the sample to the
subgroup
xsSubgroup.Add(xsSample);
// An alternative is to add the
sample directly to the subgroup
xsSubgroup.Add(0.877);
// Another alternative is to add the sample directly to the series at the ith
(0 below) subgroup
xsSeries[0].Add(0.775);