IVZDataSourceMapping.Value

Syntax

Value: Variant;

Description

The Value property determines the value corresponding to all visualizer elements.

Comments

The Value property is used if the MappingType property has the value of the VisualizatorDataMappingType constant transformation.

Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier containing a bubble tree. Set a constant transformation as one color for visualizer.

Add links to the Metabase, Express, Drawing, Visualizators system assemblies. The specified procedure should be called from the Main entry point.

Sub UsecProc;
Var
    Metabase: IMetabase;
    EaxAnalyzer: IEaxAnalyzer;
    BubbleTree: IVZBubbleTree;
    ColorVisual: IVZColorVisual;
    DataSourceMapping: IVZDataSourceMapping;
    Brush: IGxSolidBrush;
Begin   
    // Get the current repository
    Metabase := MetabaseClass.Active;
    // Get express report
    EaxAnalyzer := Metabase.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
    // Get bubble tree
    BubbleTree := EaxAnalyzer.BubbleTree.BubbleTree;
    // Get visualizer colors
    ColorVisual := BubbleTree.ColorVisual;
    // Get settings used for data mapping
    DataSourceMapping := ColorVisual.ColorMapping;
    // Set constant transformation
    DataSourceMapping.MappingType := VisualizatorDataMappingType.DataMappingConstant;
    // Set blue color for bubble tree elements
    Brush := New GxSolidBrush.Create(New GxColor.CreateRGB(0255255));
    DataSourceMapping.Value := Brush;
    // Display data mapping type in the console
    Debug.WriteLine("Data mapping type: " + DataSourceMapping.MappingType.ToString);
    // Save changes in express report
    (EaxAnalyzer As IMetabaseObject).Save;
End Sub UsecProc;

After executing the example, the bubble tree elements will be displayed using the specified color in the express report. The console will display the data mapping type:

Data mapping type: 2

See also:

IVZDataSourceMapping