IndicatorCount: Integer;
The IndicatorCount property returns the number of visualizer metrics.
Metrics enables the user to control visualizer characteristics. For example, the used font color is selected depending on the metric value.
Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier, which must contain visualizers: bubble tree and tree map.
Add links to the Express, Metabase, Visualizators system assemblies.
Sub UserProc;
Var
Metabase: IMetabase;
EaxAnalyzer: IEaxAnalyzer;
TM: IEaxVisualizer;
BT: IEaxVisualizer;
I, K: Integer;
Begin
// Get repository
Metabase := MetabaseClass.Active;
// Get express report
EaxAnalyzer := Metabase.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
// Get map tree from express report
TM := EaxAnalyzer.TreeMap;
// Display to the console number of map tree metrics
I := TM.IndicatorCount;
Debug.WriteLine("Number of map tree metrics = " + i.ToString);
// Get bubble tree from express report
BT := EaxAnalyzer.BubbleTree;
// Display the number of bubble tree metrics to the console window
Debug.WriteLine("Number of bubble tree metrics = " + k.ToString);
End Sub UserProc;
After executing the example the console window displays the number of tree map and bubble tree metrics.
See also: