this.ultraCategoryChart1.MarkerTypes.Add(MarkerType.Circle);
this.ultraCategoryChart1.MarkerTypes.Add(MarkerType.Diamond);
this.ultraCategoryChart1.MarkerTypes.Add(MarkerType.Square);
Markers are visual elements that are displayed at the values of data points in the UltraCategoryChart control’s plot area. Markers help your end-users immediately identify a data point’s value even if the value falls between major or minor grid lines. This section provides you with useful information about working with the UltraCategoryChart control’s Markers.
This topic contains the following sections:
The appearance of chart markers is managed through the marker properties of the UltraCategoryChart class.
The following table lists all marker appearance properties.
The code snippet below demonstrates how to change the marker type for the UltraCategoryChart.
In C#:
this.ultraCategoryChart1.MarkerTypes.Add(MarkerType.Circle);
this.ultraCategoryChart1.MarkerTypes.Add(MarkerType.Diamond);
this.ultraCategoryChart1.MarkerTypes.Add(MarkerType.Square);
In Visual Basic:
Me.ultraCategoryChart1.MarkerTypes.Add(MarkerType.Circle)
Me.ultraCategoryChart1.MarkerTypes.Add(MarkerType.Diamond)
Me.ultraCategoryChart1.MarkerTypes.Add(MarkerType.Square)
The following screenshot displays the UltraCategoryChart control using the Line chart type with Diamond markers.
The code snippets below demonstrate how to change the MarkerBrushes and MarkerOutlines for the UltraCategoryChart.
In C#:
this.ultraCategoryChart1.MarkerBrushes.Add(System.Drawing.Color.FromArgb(255, 255, 255, 0));
this.ultraCategoryChart1.MarkerOutlines.Add(System.Drawing.Color.FromArgb(173, 10, 34, 0));
this.ultraCategoryChart1.MarkerOutlines.Add(System.Drawing.Color.FromArgb(173, 119, 10, 0));
this.ultraCategoryChart1.MarkerOutlines.Add(System.Drawing.Color.FromArgb(34, 173, 10, 0));
this.ultraCategoryChart1.Brushes.Add(System.Drawing.Color.FromArgb(173, 10, 34, 0));
this.ultraCategoryChart1.Brushes.Add(System.Drawing.Color.FromArgb(173, 119, 10, 0));
this.ultraCategoryChart1.Brushes.Add(System.Drawing.Color.FromArgb(34, 173, 10, 0));
In Visual Basic:
Me.ultraCategoryChart1.MarkerBrushes.Add(System.Drawing.Color.FromArgb(255, 255, 255, 0))
Me.ultraCategoryChart1.MarkerOutlines.Add(System.Drawing.Color.FromArgb(173, 10, 34, 0))
Me.ultraCategoryChart1.MarkerOutlines.Add(System.Drawing.Color.FromArgb(173, 119, 10, 0))
Me.ultraCategoryChart1.MarkerOutlines.Add(System.Drawing.Color.FromArgb(34, 173, 10, 0))
Me.ultraCategoryChart1.Brushes.Add(System.Drawing.Color.FromArgb(173, 10, 34, 0))
Me.ultraCategoryChart1.Brushes.Add(System.Drawing.Color.FromArgb(173, 119, 10, 0))
Me.ultraCategoryChart1.Brushes.Add(System.Drawing.Color.FromArgb(34, 173, 10, 0))
The following screenshot displays the UltraCategoryChart control using the Line chart type with customized markers.