TickMarksInterval: Integer;
TickMarksInterval: System.Int32;
The TickMarksInterval property determines an interval between category axis tick marks.
The property is relevant only for the category axis and any attempt to set this property for other types of axes throws an exception.
If the TickMarksInterval property is used, take into account the IChart.SuppressSpaceTick property value.
Executing the example requires a regular report with the Rep_1 identifier with a chart on the report sheet. The inspector of unit assemblies must contain links to the Chart, Report, Tab and Metabase system assemblies.
Sub macro;
Var
mb: IMetabase;
report: IPrxReport;
chart: IChart;
aX: IChartAxis;
Begin
mb := MetabaseClass.Active;
report := mb.ItemById("Rep_1").Edit As IPrxReport;
chart := (report.ActiveSheet As IPrxTable).TabSheet.Objects.Item(0).Extension As IChart;
aX := chart.AxisX;
aX.TextHorizontalAlignment := ChartHorizontalAlignment.Left;
aX.TickMarksInterval :=2;
(report As IMetabaseObject).Save;
End Sub macro;
After executing the example the category axis displays every second tick mark.
Executing the example requires a regular report with the Rep_1 identifier with a chart on the report sheet. The inspector of unit assemblies must contain links to the Chart, Report, Tab and Metabase system assemblies.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Tab;
Imports Prognoz.Platform.Interop.Chart;
...
Public Shared Sub Macro(Params: StartParams);
Var
mb: IMetabase;
report: IPrxReport;
chart: IChart;
aX: IChartAxis;
Begin
mb := Params.Metabase;
report := mb.ItemById["Rep_1"].Edit() As IPrxReport;
chart := (report.ActiveSheet As IPrxTable).TabSheet.Objects.Item[0].Extension As IChart;
aX := chart.AxisX;
aX.TextHorizontalAlignment := ChartHorizontalAlignment.chaLeft;
aX.TickMarksInterval :=2;
(report As IMetabaseObject).Save();
End Sub;
After executing the example the category axis displays every second tick mark.
See also: