Histogram Control
Edit Normal Curve Appearance
This page describes how to change the appearance of the normal curve 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 normal curve appearance:
The first step is to include the necessary namespaces
for the controls and add a new series.
Change Normal Curve Appearance
Below, we will change the appearance of the normal curve for a Histogram series (named
hsSeries in the
examples below):
[Visual Basic]
' Change the appearance of the normal curve
hsSeries.CurveColor = Color.Green
hsSeries.CurveWidth = 2
hsSeries.CurveStyle = System.Drawing.Drawing2D.DashStyle.DashDot
[Visual C#]
// Change the appearance of the normal curve
hsSeries.CurveColor = Color.Green;
hsSeries.CurveWidth = 2;
hsSeries.CurveStyle = System.Drawing.Drawing2D.DashStyle.DashDot;
Charts showing before and after the normal curve appearance has been edited: