IVZDataScale.RoundBias

Fore syntax

RoundBias: Double;

Fore.NET syntax

RoundBias: double;

Description

The RoundBias property determines the value, up to which it is required to round values of line interval borders.

Comments

This property makes the value more readable.

To round interval, it is required that the value specified in this property does not violate values of elements in each interval.

Fore example

Executing the example requires that the repository contains an express report with the EXPRESS identifier containing a bubble tree.

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

Sub UserProc;
Var
    Metabase: IMetabase;
    Analyzer: IEaxAnalyzer;
    BubbleTree: IVZBubbleTree;
    ColorLegend: IVZColorLegendBase;
    Scale: IVZDataScale;
Begin
    // Get repository
    Metabase := MetabaseClass.Active;
    // Get express report
    Analyzer := Metabase.ItemById("EXPRESS").Edit As IEaxAnalyzer;
    // Get bubble tree
    BubbleTree := Analyzer.BubbleTree.BubbleTree;
    // Get tree color scale
    ColorLegend := BubbleTree.Legends.Item(0As IVZColorLegendBase;
    // Get color legend scale
    Scale := ColorLegend.Scale;
    // Round scale values
    Scale.RoundBias := 1000;
    // Refresh report and save changes
    Analyzer.RefreshAll;
    (Analyzer As IMetabaseObject).Save;
End Sub UserProc;

After executing the example values of bubble tree color legend borders that are close to 1000 are rounded to this value.

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;
    Analyzer: IEaxAnalyzer;
    BubbleTree: IVZBubbleTree;
    ColorLegend: IVZColorLegendBase;
    Scale: IVZDataScale;
Begin
    // Get repository
    Metabase := Params.Metabase;
    // Get express report
    Analyzer := Metabase.ItemById["EXPRESS"].Edit() As IEaxAnalyzer;
    // Get bubble tree
    BubbleTree := Analyzer.BubbleTree.BubbleTree;
    // Get tree color scale
    ColorLegend := BubbleTree.Legends.Item[0As IVZColorLegendBase;
    // Get color legend scale
    Scale := ColorLegend.Scale;
    // Round scale values
    Scale.RoundBias := 1000;
    // Refresh report and save changes
    Analyzer.RefreshAll();
    (Analyzer As IMetabaseObject).Save();
End Sub;

See also:

IVZDataScale