SecondaryGapWidthCoef: Double;
The SecondaryGapWidthCoef property determines gap width size of columns built on the secondary axis.
Range of available values: [0, 5].
Executing the example requires that the repository contains a regular report with the REG_REP_SSA identifier. The report contains only a chart with two data series built on secondary axis.
Add links to the Chart, Metabase, Report, Tab system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Report: IPrxReport;
Tab: ITabSheet;
Chart: IChart;
Begin
// Get access to repository
MB := MetabaseClass.Active;
// Get access to regular report
Report := MB.ItemById("REG_REP_SSA").Edit As IPrxReport;
// Get regular report table
Tab := (Report.Sheets.Item(0) As IPrxTable).TabSheet;
// Get chart
Chart := Tab.Objects.Item(0).Extension As IChart;
// Determine whether secondary axis is displayed
Chart.SeparateSecondaryAxis := True;
// Change gap width and overlap of columns on secondary axis
Chart.SecondaryGapWidthCoef := 2.0;
Chart.SecondaryOverlapCoef := -1.0;
(Report As IMetabaseObject).Save;
End Sub UserProc;
After executing the example gap width between columns and overlap of columns on secondary axis are changed in the regular report. The console window displays initial value of gap width and overlap size.
See also: