Scatter Plot Control


Exclude a Sample from Calculations

A sample can be excluded from the calculations of a series (statistics, formula, etc.). The scatter plot control of the .Net Analytics package is of the following type:

The series class of the scatter plot is:

The sample class is:

and the following property is responsible for excluding a sample:

The first step is to include the necessary namespaces for the controls, add new series, and add new samples.

Exclude a Sample

Below, we will exclude a Scatter plot sample (named spsSample in the examples below) of a Scatter plot series (named spsSeries in the examples below):

[Visual Basic]
' Exclude the sample
spsSample.ExcludeFromCalculation = True

' Another alternative is to exclude the ith (2 below) sample directly from the series
spsSeries(2).ExcludeFromCalculation = True

[Visual C#]
// Exclude the sample
spsSample.ExcludeFromCalculation = true;

// Another alternative is to exclude the ith (2 below) sample directly from the series
spsSeries[2].ExcludeFromCalculation = true;

Charts showing before and after the sample has been excluded:

Scatter plot with sample not hidden Scatter plot with sample hidden