Time Series Controls
Remove a Sample
This page describes how to remove a sample. The time series controls of the Silverlight Analytics package that are based on samples include the following:
The series classes of the respective controls are:
and the following properties are used for removing samples:
The first step is to include the necessary namespace,
add a new series, and add new samples.
Remove a Single Sample
Below, we will remove a sample of an Individuals series (named isSeries in the
examples below) of an Individuals control (named indControl in the examples below). The process is similar for the other chart listed above:
[Visual Basic]
' Remove the ith (2 below) sample
isSeries.RemoveAt(2)
' Another alternative is to remove the ith
(2 below) sample directly from the jth (0 below) series
indControl.SeriesCollection(0).RemoveAt(2)
[Visual C#]
// Remove the ith (2 below) sample
isSeries.RemoveAt(2);
// Another alternative is to remove the ith
(2 below) sample directly from the jth (0 below) series
indControl.SeriesCollection[0].RemoveAt(2);
Remove All Samples
Below, we will clear all samples:
[Visual Basic]
' Clear all the samples
isSeries.Clear()
' Another alternative is to clear all the samples directly from the jth (0 below) series
indControl.SeriesCollection(0).Clear()
[Visual C#]
// Clear all the samples
isSeries.Clear();
// Another alternative is to clear all the samples directly from the jth (0
below) series
indControl.SeriesCollection[0].Clear();