Mode: VisualizatorLegendMode;
Mode: Prognoz.Platform.Interop.Visualizators.VisualizatorLegendMode;
The Mode property determines whether the legend with intervals is shown.
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. This procedure should be called from the Main entry point.
Before executing the example, the bubble tree legend with intervals looks as shown on the IVZDataScale interface description page. Display only the intervals that have both borders:
Sub UserProc;
Var
Metabase: IMetabase; // Metabase
EaxAnalyzer: IEaxAnalyzer; // Express report
BubbleTree: IVZBubbleTree; // Bubble tree
Legend: IVZIntervalsLegend;// Scale of legend with intervals
Begin
// Get metabase object
Metabase := MetabaseClass.Active;
// Open express report
EaxAnalyzer := Metabase.ItemById("EXP").Edit As IEaxAnalyzer;
// Get bubble tree
BubbleTree := EaxAnalyzer.BubbleTree.BubbleTree;
// Get legend
Legend := BubbleTree.Legends.Item(0) As IVZIntervalsLegend;
// Display only intervals that have borders
Legend.Mode := VisualizatorLegendMode.BetweenOnly;
// Save changes made in express report
(EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;
After executing the example, the legend displays only the intervals that have both borders:
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.
Before executing the example, the bubble tree legend with intervals looks as shown on the IVZDataScale interface description page. Display only the intervals that have both borders:
Public Shared Sub Main(Params: StartParams);
Var
Metabase: IMetabase; // Metabase
EaxAnalyzer: IEaxAnalyzer; // Express report
BubbleTree: IVZBubbleTree; // Bubble tree
Legend: IVZIntervalsLegend;// Scale of legend with intervals
Begin
// Get metabase object
Metabase := Params.Metabase;
// Open express report
EaxAnalyzer := Metabase.ItemById["EXP"].Edit() As IEaxAnalyzer;
// Get bubble tree
BubbleTree := EaxAnalyzer.BubbleTree.BubbleTree;
// Get legend
Legend := BubbleTree.Legends.Item[0] As IVZIntervalsLegend;
// Display only intervals that have borders
Legend.Mode := VisualizatorLegendMode.vlmBetweenOnly;
// Save changes made in express report
(EaxAnalyzer As IMetabaseObject).Save();
End Sub;
The result of the executed example is the same as that, executed for Fore language
See also: