Histogram Control


Show the Limits

This page describes how to show the limits (USL, LSL, NSL, Mean, +- sigmas) of a histogram series. The histogram chart/control of the .Net Analytics package are of the following types:

The series class of the histogram chart/control is:

and the limits are part of the histogram's limit range:

The line representing the limit is of the following type:

The first step is to include the necessary namespace and add a new chart/control.

Change the Number of Bins/Cells

Below, we will show the mean, +1 sigma, -1 sigma, USL, and LSL limits for the first series (named hsSeries in the examples below) of a Histogram control:

[Visual Basic]
' Show the limits
hsSeries.LimitRange.MeanLimitLine.Visibility = System.Windows.Visibility.Visible
hsSeries.LimitRange.Plus1SigmaLimitLine.Visibility = System.Windows.Visibility.Visible
hsSeries.LimitRange.Minus1SigmaLimitLine.Visibility = System.Windows.Visibility.Visible
hsSeries.LimitRange.LSLLimitLine.Visibility = System.Windows.Visibility.Visible
hsSeries.LimitRange.USLLimitLine.Visibility = System.Windows.Visibility.Visible

[Visual C#]
// Show the limits
hsSeries.LimitRange.MeanLimitLine.Visibility = System.Windows.Visibility.Visible;
hsSeries.LimitRange.Plus1SigmaLimitLine.Visibility = System.Windows.Visibility.Visible;
hsSeries.LimitRange.Minus1SigmaLimitLine.Visibility = System.Windows.Visibility.Visible;
hsSeries.LimitRange.LSLLimitLine.Visibility = System.Windows.Visibility.Visible;
hsSeries.LimitRange.USLLimitLine.Visibility = System.Windows.Visibility.Visible;

In the chart below, you can test the code to see what the result will look like:

Get Microsoft Silverlight