Attributes Controls
Edit a Series' Appearance
This page describes how to change the appearance of a series.
The attributes controls of the .Net Analytics package include the following:
The series classes of the respective charts are:
A series includes a marker for the appearance of a point. The series marker applies to all points on the chart. The marker is of the following type:
Additionally, the following marker properties are visible at the series level:
The first step is to include the necessary namespaces
for the controls and add a new series.
Edit the Marker and Line
Below, we will change a u-Chart series appearance (named series in the examples below) of a u-Chart (named ucChart in the
examples below). The process is similar for the other charts:
[Visual Basic]
' Modify the color and size of the marker - these properties actually call
the PointMarker object
series.PointColor = Color.Yellow
series.PointSize = 7
' Modify the PointMarker object directly to change the border color
series.PointMarker.BorderColor = Color.Red
' Access the series via the series collection and modify the line appearance
ucChart.SeriesCollection(0).LineColor = Color.Blue
ucChart.SeriesCollection(0).LineStyle = System.Drawing.Drawing2D.DashStyle.Dash
ucChart.SeriesCollection(0).LineWidth = 2
[Visual C#]
// Modify the color and size of the marker - these properties actually call
the PointMarker object
series.PointColor = Color.Yellow;
series.PointSize = 7;
// Modify the PointMarker object directly to change the border color
series.PointMarker.BorderColor = Color.Red;
// Access the series via the series collection and modify the line appearance
ucChart.SeriesCollection[0].LineColor = Color.Blue;
ucChart.SeriesCollection[0].LineStyle =
System.Drawing.Drawing2D.DashStyle.Dash;
ucChart.SeriesCollection[0].LineWidth = 2;
After the series has been added, samples may then be added to the
series. Adding samples is discussed
here. The resulting
chart should look similar to the following: