Pareto Control


Remove a Sample from a Group

This page describes how to remove a sample from a group. The pareto control of the .Net Analytics package is of the following type:

The series class of the pareto chart is:

The group class of a pareto series is:

and the following properties are used for removing samples:

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

Remove a Single Sample

Below, we will remove a sample from a Pareto group (named pgGroup in the examples below) of a Pareto series (named psSeries in the examples below). The process is similar for the other charts listed above:

[Visual Basic]
' Remove the ith (2 below) sample
pgGroup.RemoveAt(2)

' Another alternative is to remove the ith (2 below) sample directly from the jth (0 below) group
psSeries(0).RemoveAt(2)

[Visual C#]
// Remove the ith (2 below) sample
pgGroup.RemoveAt(2);

// Another alternative is to remove the ith (2 below) sample directly from the jth (0 below) group
psSeries[0].RemoveAt(2);

Remove All Samples

Below, we will clear all samples:

[Visual Basic]
' Clear all the samples
pgGroup.Clear()

' Another alternative is to clear all the samples directly from the jth (0 below) group
psSeries(0).Clear()

[Visual C#]
// Clear all the samples
pgGroup.Clear();

' Another alternative is to clear all the samples directly from the jth (0 below) group
psSeries[0].Clear();