IVZDataVisual.Index

Fore Syntax

Index: Integer;

Fore.NET Syntax

Index: integer;

Description

The Index property determines data display index.

Fore example

Executing the example requires that the repository contains an express report with the EXP identifier.

Ad links to the Express, Metabase, Visualizators system assemblies.

Sub UserProc;
Var
    Metabase: IMetabase; // Repository
    EaxAnalyzer: IEaxAnalyzer; // Express report
    BubbleTree: IVZBubbleTree; // Bubble tree
    DataVisual: IVZDataVisual; // Color visualizer
    DataMappingName: String; // Data mapping name
Begin       
    // Get repository
    Metabase := MetabaseClass.Active;
    // Open express report
    EaxAnalyzer := Metabase.ItemById("EXP").Edit As IEaxAnalyzer;
    // Get bubble tree
    BubbleTree := EaxAnalyzer.BubbleTree.BubbleTree;
    // Get color visualizer
    DataVisual := BubbleTree.ColorVisual;
    // Set index
    DataVisual.Index := 1;
    // Set data mapping name
    DataMappingName := "ColorMapping";
End Sub UserProc;

After executing the example color visualizer index is changed, a new data mapping name is set.

Fore.NET example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Visualizators;

Public Shared Sub Main(Params: StartParams);
Var
    Metabase: IMetabase; // Repository
    EaxAnalyzer: IEaxAnalyzer; // Express report
    BubbleTree: IVZBubbleTree; // Bubble tree
    DataVisual: IVZDataVisual; // Color visualizator
    DataMappingName: String; // Data mapping name
Begin       
    // Get repository
    Metabase := Params.Metabase;
    // Open express report
    EaxAnalyzer := Metabase.ItemById["EXP"].Edit() As IEaxAnalyzer;
    // Get bubble tree
    BubbleTree := EaxAnalyzer.BubbleTree.BubbleTree;
    // Get color visualizer
    DataVisual := BubbleTree.ColorVisual;
    // Set index
    DataVisual.Index := 1;
    // Set data mapping name
    DataMappingName := "ColorMapping";
End Sub;

See also:

IVZDataVisual