IEaxTreeMap.TreeMap

Fore Syntax

TreeMap: IVZTreeMap;

Fore.NET Syntax

BubbleTree: Prognoz.Platform.Interop.Visualizators.VZBubbleTree;

Description

The TreeMap property returns object containing map tree display parameters in the express report.

Comments

Tree map is a method for displaying hierarchical data as a set of nested rectangles. Each hierarchy branch is presented with a rectangle, which includes smaller rectangles that are subbranches. Each rectangle area is proportional to value of the corresponding hierarchy element. Rectangle color is also determined by hierarchy element value.

Fore Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier that contains a map tree.

Add links to the Express, Metabase, Visualizators system assemblies.

Sub UserProc;
Var
    Metabase: IMetabase;
    EaxAnalyzer: IEaxAnalyzer;
    TM: IEaxTreeMap;
    TreeM: IVZTreeMap;
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;
    // Get map tree as visualizer
    TreeM := TM.TreeMap;
    // Enable 3D displaying mode
    TreeM.View3D := True;
    TreeM.RenderMode := VisualizatorTreeMapRenderMode.RM3D;
    TM.Refresh;
    // Save changes
    (EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;

After executing the example map tree will be displayed in 3D.

Fore.NET Example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Visualizators;


Public Shared Sub Main(Params: StartParams);
Var
    Metabase: IMetabase;
    EaxAnalyzer: IEaxAnalyzer;
    TM: IEaxTreeMap;
    TreeM: IVZTreeMap;
Begin
    // Get repository
    Metabase := Params.Metabase;
    // Get express report
    EaxAnalyzer := Metabase.ItemById["EXPRESS_REPORT"].Edit() As IEaxAnalyzer;
    // Get map tree from express report
    TM := EaxAnalyzer.TreeMap;
    // Get map tree as visualizer
    TreeM := TM.TreeMap;
    // Enable 3D displaying mode
    TreeM.View3D := True;
    TreeM.RenderMode := VisualizatorTreeMapRenderMode.tmrmRM3D;
    TM.Refresh();
    // Save changes
    (EaxAnalyzer As IMetabaseObject).Save();
End Sub;

See also:

IEaxTreeMap