Pareto Control


Null Values in a Group

A group is composed of multiple samples. In some cases, sample values may not be known. This page describes how to handle null values. 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, add a new series, and add new groups.

Add Null Values to a Group

Below, we will add values, including null values, to Pareto groups of a Pareto chart (named pcChart in the examples below). The process is similar for the other charts listed above:

[Visual Basic]
' Create a new group
Dim pgGroup As New ParetoGroup()
' Add some sample values to the group
pgGroup.Add(0.4)
pgGroup.Add(0.2)
pgGroup.Add(0.5)
' Exclude the last sample from calculations of the group
pgGroup(2).ExcludeFromCalculation = True
' Add the group to the first series
pcChart.SeriesCollection(0).Add(pgGroup)

[Visual C#]
// Create a new group
ParetoGroup pgGroup = new ParetoGroup();
// Add some sample values to the group
pgGroup.Add(0.3);
pgGroup.Add(0.1);
pgGroup.Add(null);
// Add the group to the first series
pcChart.SeriesCollection[0].Add(pgGroup);

// Create another new group
pgGroup = new ParetoGroup();
// Add some sample values to the subgroup
pgGroup.Add(0.4);
pgGroup.Add(0.2);
pgGroup.Add(0.5);
// Exclude the last sample from calculations of the group
pgGroup[2].ExcludeFromCalculation = true;
// Add the group to the first series
pcChart.SeriesCollection[0].Add(pgGroup);