Pareto Control
Add a New Group
Samples for the pareto control must be added to 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:
The first step is to include the necessary namespaces
for the controls and add a new series.
Add a Group
Below, we will add a group to a Pareto series (named psSeries in the
examples below) and to a Pareto chart (named pcChart in the
examples below):
[Visual Basic]
' Create a new group
Dim pgGroup As New ParetoGroup()
' Add the
group to the series
psSeries.Add(pgGroup)
' An alternative is
to add the group directly to the series
psSeries.Add("Group 2")
' Another alternative is to add the group directly to the series collection
at the ith (0 below) series
pcChart.SeriesCollection(0).Add("Group 3")
[Visual C#]
// Create a new group
ParetoGroup pgGroup = new ParetoGroup();
// Add the group to the series
psSeries.Add(pgGroup);
// An alternative is
to add the group directly to the series
psSeries.Add("Group 2");
// Another alternative is to add the group directly to the series collection
at the ith (0 below) series
pcChart.SeriesCollection[0].Add("Group 3");
After the groups have been added, and samples have been added to the groups as described
here, the resulting
chart should look similar to the following: