Count: Integer;
The Count property returns the number of level lines on a chart.
To add a level line to the chart, use the IChartAxisLevelLines.Add method.
Executing the example requires an express report with the EXPRESS identifier that contains data view as a chart.
Add links to the Metabase, Express, Chart system assemblies.
Sub UserProc;
Var
MB: IMetabase;
eax: IEaxAnalyzer;
Chart: IChart;
Begin
MB := MetabaseClass.Active;
eax := MB.ItemById("EXPRESS").Bind As IEaxAnalyzer;
Chart := eax.Chart.Chart;
Debug.Write("Number of level lines on the X axis: ");
Debug.WriteLine(Chart.AxisX.LevelLines.Count);
Debug.Write("Number of level lines on the Y axis: ");
Debug.WriteLine(Chart.AxisY.LevelLines.Count);
End Sub UserProc;
After executing the example the console window displays the number of level lines on the X and Y axes on the chart.
See also: