TreeMap: IVZTreeMap;
The TreeMap property returns object containing map tree display parameters in the express report.
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.
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.
See also: