Marker: IChartMarker;
Marker: Prognoz.Platform.Interop.Chart.IChartMarker;
The Marker property returns parameters of the marker of the selected data series on the chart.
Executing the example requires a form, the Button1 button located on this form, the ChartBox component and UiChart component used as a data source.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
SelectedSeries: IChartSelectedSeries;
Mark: IChartMarker;
Begin
SelectedSeries:= UiChart1.Chart.SelectedSeries;
SelectedSeries.DisplayMarkers := True;
SelectedSeries.MarkerSize := 5;
SelectedSeries.MarkerType := ChartMarkerType.Rhombus;
Mark := SelectedSeries.Marker;
Mark.DisplayShadow := True;
Mark.Shadow.Color := GxColor.FromName("Blue");
End Sub Button1OnClick;
After executing the example, the markers with a blue shadow are displayed for the selected data series.
Executing the example requires a form, the Button1 button located on this form, the ChartBoxNet component and UiChartNet component used as a data source.
Imports Prognoz.Platform.Forms.Net;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Chart;
...
Private Sub button1_Click( sender : System.Object; e : System.EventArgs );
Var
SelectedSeries: IChartSelectedSeries;
Mark: IChartMarker;
Begin
SelectedSeries:= UiChartNet1.ChartUi.Chart.SelectedSeries;
SelectedSeries.DisplayMarkers := True;
SelectedSeries.MarkerSize := 5;
SelectedSeries.MarkerType := ChartMarkerType.Rhombus;
Mark := SelectedSeries.Marker;
Mark.DisplayShadow := True;
End Sub button1_Click;
After executing the example, the markers with a shadow are displayed for the selected data series.
See also: