Time Series Controls
Remove a Sample from a Subgroup
This page describes how to remove a sample from 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 following properties are used for removing samples:
Remove a Single Sample
Below, we will remove a sample from a Xbar subgroup (named xsSubgroup in the examples below) of a Xbar series (named xsSeries in the
examples below). The process is similar for the other charts listed above:
[Visual Basic]
' Remove the ith (2 below) sample
xsSubgroup.RemoveAt(2)
' Another alternative is to remove the ith
(2 below) sample directly from the jth (0 below) subgroup
xsSeries(0).RemoveAt(2)
[Visual C#]
// Remove the ith (2 below) sample
xsSubgroup.RemoveAt(2);
// Another alternative is to remove the ith
(2 below) sample directly from the jth (0 below) subgroup
xsSeries[0].RemoveAt(2);
Remove All Samples
Below, we will clear all samples:
[Visual Basic]
' Clear all the samples
xsSubgroup.Clear()
' Another alternative is to clear all the samples directly from the jth (0
below) subgroup
xsSeries(0).Clear()
[Visual C#]
// Clear all the samples
xsSubgroup.Clear();
' Another alternative is to clear all the samples directly from the jth (0
below) subgroup
xsSeries[0].Clear();