LabelsCount: Integer;
The LabelCount property returns the number of series data labels.
Executing the example requires that the repository contains an express report with the EXP_R identifier containing a chart.
Add links to the Chart and Express system assemblies.
Sub UserProc;
Var
MB: IMetabase;
EaxAnalyzer: IEaxAnalyzer;
Chart: IChart;
Serie: IChartSerie;
Count: Integer;
Begin
// Get repository object
MB := MetabaseClass.Active;
// Get express report
EaxAnalyzer := MB.ItemById("EXP_R").Bind As IEaxAnalyzer;
// Get express report chart
Chart := EaxAnalyzer.Chart.Chart;
// Get chart series
Serie := Chart.Series.Item(0);
// Calculate the number of possible data labels
Count:= Serie.LabelsCount;
// Display the number of series
Debug.WriteLine("Number of series " + Serie.LabelsCount.ToString);
End Sub UserProc;
After executing the example the development environment console displays the number of possible data labels.
See also: