Background: 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.
See also: