Pareto Control


Add a New Series

This page describes how to add a pareto series. The pareto control of the .Net Analytics package is of the following type:

The series class of the pareto chart is:

The first step is to include the necessary namespaces for the controls.

Add a Single Series

Below, we will add a new series to a Pareto chart (named pcChart in the examples below):

[Visual Basic]
' Create a new series
Dim psSeries As New ParetoSeries("Series 1")
' Add the series to the collection
pcChart.SeriesCollection.Add(psSeries)

' An alternative is to add the series directly to the collection
pcChart.SeriesCollection.Add("Series 1")

[Visual C#]
// Create a new series
ParetoSeries psSeries = new ParetoSeries("Series 1");
// Add the series to the collection
pcChart.SeriesCollection.Add(psSeries);

// An alternative is to add the series directly to the collection
pcChart.SeriesCollection.Add("Series 1");

After the series has been added, groups and samples may then be added. Adding groups is discussed here. The first series of the chart can be referenced via pcChart.SeriesCollection[0]. The resulting chart should look similar to the following:

Pareto chart with one series