Skip to main content

Markers

Version: 12.0

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​

PropertyDescription
ColorGets or sets the color of the Marker.
SizeGets or sets the size of the Marker.

Marker Symbols​

Markers can be created for the following symbols.

SymbolMethodDescription
AsteriskGetAsterisk(Single)Gets the instance of the Marker type as an Asterisk.
CircleGetCircle(Single)Gets the instance of the Marker type as a Circle.
CrossGetCross(Single)Gets the instance of the Marker type as a Cross.
DashGetDash(Single)Gets the instance of the Marker type as a Dash.
DiamondGetDiamond(Single)Gets the instance of the Marker type as a Diamond.
PlusGetPlus(Single)Gets the instance of the Marker type as a Plus.
SquareGetSquare(Single)Gets the instance of the Marker type as a Square.
TriangleGetTriangle(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))