Background: IChartBackgroundInfo;
Background: Prognoz.Platform.Interop.Chart.IChartBackgroundInfo;
The Background property determines the fill options of the selected collection of data series.
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;
chartBI: IChartBackgroundInfo;
Begin
SelectedSeries:= UiChart1.Chart.SelectedSeries;
SelectedSeries.Add (2);
chartBI :=SelectedSeries.Background;
chartBI.Color := New GxColor.CreateRGB(245, 120, 255);
End Sub Button1OnClick;
Clicking Button1 changes the fill color of the selected series to purple.
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;
Imports Prognoz.Platform.Interop.Drawing;
...
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
SelectedSeries: IChartSelectedSeries;
chartBI: IChartBackgroundInfo;
color: GxColorClass_2;
Begin
SelectedSeries:= UiChartNet1.ChartUi.Chart.SelectedSeries;
SelectedSeries.Add (2);
chartBI := SelectedSeries.Background;
color := New GxColorClass_2();
color.CreateRGB(145, 120, 255);
chartBI.Color := color;
End Sub;
Clicking the Button1 button changes the fill color of the selected series to purple.
See also: