Histogram Control


Edit Bins/Cells Appearance

This page describes how to change the appearance of the bins/cells 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 following property is responsible for the bins/cells appearance:

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

Change Bins/Cells Appearance

Below, we will change the appearance of the cells/bins for a Histogram series (named hsSeries in the examples below):

[Visual Basic]
' Change the color of the bins/cells
hsSeries.BinFill = New SolidColorBrush(Colors.Yellow)

[Visual C#]
// Change the color of the bins/cells
hsSeries.BinFill = new SolidColorBrush(Colors.Yellow);

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

Get Microsoft Silverlight