Pareto Control
Remove a Group
A group can be removed from the series.
The pareto control of the .Net Analytics package is of the following type:
The series class of the pareto chart is:
and the following properties are used for removing groups:
The first step is to include the necessary namespaces
for the controls, add a new series, and add new groups
Remove a Single Group
Below, we will remove a group of a Pareto series (named psSeries in the
examples below) of a Pareto chart (named pcChart in the examples below):
[Visual Basic]
' Remove the ith (0 below) group
psSeries.RemoveAt(0)
' Another alternative is to remove the ith
(0 below) group directly from the jth (0 below) series
pcChart.SeriesCollection(0).RemoveAt(0)
[Visual C#]
// Remove the ith (0 below) group
psSeries.RemoveAt(0);
// Another alternative is to remove the ith
(0 below) group directly from the jth (0 below) series
pcChart.SeriesCollection[0].RemoveAt(0);
Charts showing before and after the group has been removed:
Remove All Groups
Below, we will clear all groups:
[Visual Basic]
' Clear all the groups
psSeries.Clear()
' Another alternative is to clear all the groups directly from the jth (0 below) series
pcChart.SeriesCollection(0).Clear()
[Visual C#]
// Clear all the groups
psSeries.Clear();
// Another alternative is to clear all the groups directly from the jth (0
below) series
pcChart.SeriesCollection[0].Clear();