Time Series Controls
Edit a Sample
A sample can be edited. This includes its value, code, datetime, key, notes,
and annotations.
The time series controls of the .Net Analytics package that are based on samples include the following:
The series classes of these respective charts are:
and the sample classes are:
The first step is to include the necessary namespaces
for the controls, add a new series, and add new samples.
Edit a Sample
Below, we will edit an Individuals sample (named isSample in the examples below) of an Individuals series (named isSeries in the
examples below). The process is similar for the other charts listed above:
[Visual Basic]
' Edit the value of the sample
isSample.Value = 0.5
' Add a note and annotation to the ith (2 below) sample of the series
isSeries(2).Notes.Add("Measure")
isSeries(2).Annotations.Add("Issue")
[Visual C#]
// Edit the value of the sample
isSample.Value = 0.5;
// Add
a note and annotation to the ith (2 below) sample of the series
isSeries[2].Notes.Add("Measure");
isSeries[2].Annotations.Add("Issue");
After the samples have been added and the third sample edited, the resulting
chart should look similar to the following: