IVZDataScale.Type

Syntax

Type: VisualizatorScaleType;

Description

The Type property determines visualizer scale type.

Comments

After changing visualizer scale type, recalculate the scale by means of IVZDataScale.AutoSetupScaleItems.

Example

Executing the example requires that the repository contains an express report with a bubble tree with metrics Color and Size. For bubble tree, leave only numeric scale and display its value range.

Place the Button, UiErAnalyzer, EaxDocumentViewerBox components named Button1, UiErAnalyzer1 and EaxDocumentViewerBox1 correspondingly on the form. For UiErAnalyzer select the Active property to True, OperationMode to Edit and select the express report in the Object property. For EaxDocumentViewerBox select the UiErAnalyzer1 component in the property Analyzer.

Add links to the Express, Forms, and Visualizators system assemblies.

The example is the OnClick event handler for the Button1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    BubbleTree: IVZBubbleTree;
    Scale: IVZDataScale;
Begin
    BubbleTree := UiErAnalyzer1.ErAnalyzer.BubbleTree.BubbleTree;
    // Get bubble tree color scale
    Scale := BubbleTree.ColorVisual.ColorMapping.Scale;
    // Change scale type to numeric
    Scale.Type := VisualizatorScaleType.Double;
    // Display value range in the console
    Debug.WriteLine("Value range: " + Scale.MinValue.ToString + " - " + Scale.MaxValue.ToString);
    // Recalculate scale
    Scale.AutoSetupScaleItems;
    // Refresh bubble tree
    UiErAnalyzer1.ErAnalyzer.BubbleTree.Refresh;
End Sub Button1OnClick;

After clicking the button, numeric scale for the bubble tree stays in the express report. The console displays the range of scale values:

Value range: 3 - 22.1526785000136

See also:

IVZDataScale