IVZIntervalsLegend.Mode

Fore Syntax

Mode: VisualizatorLegendMode;

Fore.NET Syntax

Mode: Prognoz.Platform.Interop.Visualizators.VisualizatorLegendMode;

Description

The Mode property determines whether the legend with intervals is shown.

Fore Example

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(0As 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:

Fore.NET Example

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[0As 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:

IVZIntervalsLegend