Histogram Control
Edit Cells/Bins Appearance
This page describes how to change the appearance of the cells/bins of a histogram series. The histogram control of the .Net Analytics package is of the following type:
The series class of the histogram chart is:
and the following properties are responsible for the cells/bins appearance:
The first step is to include the necessary namespaces
for the controls and add a new series.
Change Cells/Bins 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 cells/bins
hsSeries.CellFillColor = Color.Green
' The following also adds a pattern to the cells/bins
hsSeries.CellFillWithPattern = True
hsSeries.CellFillPattern = System.Drawing.Drawing2D.HatchStyle.DottedDiamond
hsSeries.CellBackColor = Color.Gold
[Visual C#]
// Change the color of the cells/bins
hsSeries.CellFillColor = Color.Green;
// The following also adds a pattern to the cells/bins
hsSeries.CellFillWithPattern = true;
hsSeries.CellFillPattern = System.Drawing.Drawing2D.HatchStyle.DottedDiamond;
hsSeries.CellBackColor = Color.Gold;
Charts showing before and after the cells/bins appearance has been edited: