Markers

Markers are symbols used to identify the individual data values, i.e., the x and y coordinates intersection on a chart. Area, line, and scatter charts can all use markers.

Properties

Property Description
Color Gets or sets the color of the Marker.
Size Gets or sets the size of the Marker.

Marker Symbols

Markers can be created for the following symbols.

Symbol Method Description
Asterisk GetAsterisk(Single) Gets the instance of the Marker type as an Asterisk.
Circle GetCircle(Single) Gets the instance of the Marker type as a Circle.
Cross GetCross(Single) Gets the instance of the Marker type as a Cross.
Dash GetDash(Single) Gets the instance of the Marker type as a Dash.
Diamond GetDiamond(Single) Gets the instance of the Marker type as a Diamond.
Plus GetPlus(Single) Gets the instance of the Marker type as a Plus.
Square GetSquare(Single) Gets the instance of the Marker type as a Square.
Triangle GetTriangle(Single) Gets the instance of the Marker type as a Triangle.

Adding Markers

The following code illustrates adding a marker to a DateTimeLineSeries.

DateTimeLineSeries lineSeries = new DateTimeLineSeries("Series name");
Marker marker = Marker.GetCircle(2);
lineSeries.Marker = marker;       
Dim MyLineSeries As DateTimeLineSeries = New DateTimeLineSeries("Series name")
Dim MyMarker As Marker = Marker.GetCircle(2)
MyLineSeries.Marker = MyMarker  

The Series class can also add markers using its constructors. The following example illustrates adding markers to an XYScatterSeries using one of its constructors.

XYScatterSeries xyScatterSeries1 = new XYScatterSeries("Team A", Marker.GetPlus(5));
XYScatterSeries xyScatterSeries2 = new XYScatterSeries("Team B", Marker.GetTriangle(10));
Dim MyXyScatterSeries1 As XYScatterSeries = New XYScatterSeries("Team A", Marker.GetPlus(5))
Dim MyXyScatterSeries2 As XYScatterSeries = New XYScatterSeries("Team B", Marker.GetTriangle(10))

In this topic