Histogram Control


Show/Hide Statistics

This page describes how to show and hide statistics that are shown in the statistics box. Statistics are at the series (basic statistics such as maximum, median, standard deviation, ...) and limit range (statistics such as Ppk, Cpk, ...) level. The histogram chart/control of the .Net Analytics package are of the following types:

The series class of the histogram chart/control is:

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

Show and Hide Statistics

Below, we will hide some statistics and show others of a Histogram series (named hsSeries in the examples below):

[Visual Basic]
' Hide the median of the series in the statistics box
hsSeries.ShowMaximum = False

' Show the kurtosis and skewness calculations in the statistics box
hsSeries.ShowKurtosis = True
hsSeries.ShowSkewness = True

' Statistics such as Ppk, Cpk, and others are in the limit range
hsSeries.LimitRange.ShowCpk = True

[Visual C#]
// Hide the median of the series in the statistics box
hsSeries.ShowMaximum = false;

// Show the kurtosis and skewness calculations in the statistics box
hsSeries.ShowKurtosis = true;
hsSeries.ShowSkewness = true;

// Statistics such as Ppk, Cpk, and others are in the limit range
hsSeries.LimitRange.ShowCpk = true;

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

Get Microsoft Silverlight