RoundBias: Double;
The RoundBias property determines the value, up to which it is required to round values of line interval borders.
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.
Executing the example requires that the repository contains an express report with the EXPRESS identifier containing a bubble tree.
Add 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(0) As 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.
See also: