Pareto Control
Edit Cells Appearance
This page describes how to change the appearance of the cell of a pareto group. The pareto control of the .Net Analytics package is of the following type:
The series class of the pareto chart is:
The group class of a pareto series is:
and the following properties are responsible for the cell appearance:
The first step is to include the necessary namespaces
for the controls, add a new series, and add new groups.
Change Cell Appearance
Below, we will change the appearance of the curve for a Pareto group (named pgGroup in the examples below) of a Pareto series (named
psSeries in the
examples below):
[Visual Basic]
' Change the color of the cell for the first group
pgGroup.CellFillColor = Color.Green
' The following also adds a pattern to the cell of the first group
pgGroup.CellFillWithPattern = True
pgGroup.CellFillPattern = System.Drawing.Drawing2D.HatchStyle.DottedDiamond
pgGroup.CellBackColor = Color.Gold
' Change the color of the cell for the second group
psSeries(1).CellFillColor = Color.Red
' The following also adds a pattern to the cell of the second group
psSeries(1).CellFillWithPattern = True
psSeries(1).CellFillPattern = System.Drawing.Drawing2D.HatchStyle.DarkVertical
psSeries(1).CellBackColor = Color.Blue
[Visual C#]
// Change the color of the cell for the first group
pgGroup.CellFillColor = Color.Green;
// The following also adds a pattern to the cell of the first group
pgGroup.CellFillWithPattern = true;
pgGroup.CellFillPattern = System.Drawing.Drawing2D.HatchStyle.DottedDiamond;
pgGroup.CellBackColor = Color.Gold;
// Change the color of the cell for the second group
psSeries[1].CellFillColor = Color.Red;
// The following also adds a pattern to the cell of the second group
psSeries[1].CellFillWithPattern = true;
psSeries[1].CellFillPattern = System.Drawing.Drawing2D.HatchStyle.DarkVertical;
psSeries[1].CellBackColor = Color.Blue;
Charts showing before and after the cell appearances have been edited: