BackgroundInfo: IChartBackgroundInfo;
The BackgroundInfo property determines properties of background fill for a label.
Executing the example requires a regular report with a chart on the report sheet. A unit is added to the report and the UserProc procedure is called from this unit using the hyperlink. The inspector of unit assemblies must contain links to the Chart, Report, Tab and Drawing system assemblies.
Sub UserProc;
Var
Chart: IChart;
Begin
Chart := (PrxReport.ActiveReport.ActiveSheet As IPrxTable).TabSheet.Objects.Item(0).Extension As IChart;
Chart.Series.DisplayLabels := True;
Chart.Series.DefaultLabel.BackgroundInfo.Color := New GxColor.CreateARGB( 255, 255, 0, 0);
End Sub UserProc;
After executing the example the label background color is changed to red.
See also: