HeatMap: Boolean;
HeatMap: System.Boolean;
The HeatMap property determines whether root and children elements of tree map can be placed at one level.
If the property is set to true, the root and children elements of map tree will be displayed at one level, otherwise – root elements will be located above children tree elements.
Executing the example requires that the repository contains an express report with the EXP identifier. The module containing the example should have links to the Express, Metabase and Visualizators system assemblies. This procedure should be called from the Main entry point.
Set root and children elements location at the same level:
Sub UserProc;
Var
Metabase: IMetabase; // Metabase
EaxAnalyzer: IEaxAnalyzer; // Express report
TreeMap: IVZTreeMap; // Tree map
Begin
// Get metabase object
Metabase := MetabaseClass.Active;
// Get express report object
EaxAnalyzer := Metabase.ItemById("EXP").Edit As IEaxAnalyzer;
// Get tree map
TreeMap := EaxAnalyzer.TreeMap.TreeMap;
// Set root and children elements location at the same level
TreeMap.HeatMap := True;
//Refresh map tree and save express report
EaxAnalyzer.TreeMap.Refresh;
(EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;
As a result of example execution, root and children elements of map tree will be located at the same level.
Executing the example requires that the repository contains an express report with the EXP identifier. The selected procedure is the Main entry point in the Program module of the .NET assembly. The Express, Metabase and Visualizators assemblies should be imported to this module from the Prognoz.Platform.Interop system assembly.
Set root and children elements location at the same level:
Public Shared Sub Main(Params: StartParams);
Var
Metabase: IMetabase; // Metabase
EaxAnalyzer: IEaxAnalyzer; // Express report
TreeMap: IVZTreeMap; // Tree map
Begin
// Get metabase object
Metabase := Params.Metabase;
// Get express report object
EaxAnalyzer := Metabase.ItemById["EXP"].Edit() As IEaxAnalyzer;
// Get tree map
TreeMap := EaxAnalyzer.TreeMap.TreeMap;
// Set root and children elements location at the same level
TreeMap.HeatMap := True;
// Refresh map tree and save express report
EaxAnalyzer.TreeMap.Refresh;
(EaxAnalyzer As IMetabaseObject).Save();
End Sub;
The result of the executed example is the same as that, executed for Fore language.
See also: