Histogram Control
Exclude a Sample from Calculations
This page describes how to exclude a sample of a histogram series from calculations. The histogram chart/control of the .Net Analytics package are of the following types:
The series class of the histogram chart/control is:
and the sample class is:
The following property is used for excluding a sample:
The first step is to include the necessary namespace
and add a new chart/control.
Exclude a Sample
Below, we will exclude a Histogram sample (named hsSample in the examples below) of a
Histogram series (named hsSeries in the examples below):
[Visual Basic]
' Exclude the sample
hsSample.Exclude = True
' Another alternative is to exclude the ith
(2 below) sample directly from the series
hsSeries(2).Exclude = True
[Visual C#]
// Exclude the sample
hsSample.Exclude = true;
// Another alternative is to
exclude the ith (2 below) sample directly from the series
hsSeries[2].Exclude = true;