Pareto Control
Add a New Sample to a 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:
and the sample class is:
The first step is to include the necessary namespaces
for the controls, add a new series, and add a new group.
Add a Sample to a Group
Below, we will add a sample to a Pareto group (named pgGroup in the examples below)
and to a Pareto series (named psSeries in the
examples below):
[Visual Basic]
' Create a new sample
Dim psSample As New ParetoSample(0.091)
' Add the sample to the group
pgGroup.Add(psSample)
' An
alternative is to add the sample directly to the group
pgGroup.Add(0.877)
' Another alternative is to add the sample directly to the series at the ith
(0 below) group
psSeries(0).Add(0.775)
[Visual C#]
// Create a new sample
ParetoSample psSample = new ParetoSample(0.091);
// Add the sample to the
group
pgGroup.Add(psSample);
// An alternative is to add the
sample directly to the group
pgGroup.Add(0.877);
// Another alternative is to add the sample directly to the series at the ith
(0 below) group
psSeries[0].Add(0.775);
After the samples have been added, the resulting
chart should look similar to the following: