ItemsToolTipStyle: IVZToolTipStyle;
The ItemsToolTipStyle property determines style of tooltips for tree map leaves.
The tooltip of a tree map leaf may look as follows:
Executing the example requires that the repository contains an express report with the EXP identifier. The module containing the example should have links to Express, Metabase and Visualizators assemblies. The specified procedure should be called from the Main entry point.
Change the text shown when no data is available, set display mode for map tree element tooltips on mouse click:
Sub UserProc;
Var
Metabase: IMetabase; // Metabase
EaxAnalyzer: IEaxAnalyzer; // Express report
TreeMap: IVZTreeMap; // Tree map
ItemsToolTipStyle: IVZToolTipStyle; // Text labels style
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;
//Getobjectoftextlabelsstyle ItemsToolTipStyle := TreeMap.ItemsToolTipStyle;
//Settext,shownwhenno data is available ItemsToolTipStyle.NoDataText := "no data";
// Set tooltips display mode
ItemsToolTipStyle.HoverMode := VisualizatorHoverMode.Click;
// Save express report
(EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;
After executing the example the tooltip text, shown when data is missing, is changed. The tooltip now appears on mouse click on a tree map element:
See also: