Scale: IVZDataScale;
The Scale property determines a scale for visualizer color legend.
Executing the example requires that the repository contains an express report with the EXP identifier. The module containing the example should have links to the Express, Metabase and Visualizators system assemblies. The specified procedure should be called from the Main entry point.
Before executing the example, the color scale of bubble tree looks as shown on the IVZColorLegendBase interface description page. Set two elements for this scale:
Sub UserProc;
Var
Metabase: IMetabase; // Metabase
Analyzer: IEaxAnalyzer; // Express report
BubbleTree: IVZBubbleTree; // Bubble tree
ColorLegend: IVZColorLegendBase; // Color legend
Scale: IVZDataScale; // Color legend scale
Begin
// Get metabase object
Metabase := MetabaseClass.Active;
// Get express report object
Analyzer := Metabase.ItemById("EXP").Edit As IEaxAnalyzer;
// Get bubble tree
BubbleTree := Analyzer.BubbleTree.BubbleTree;
// Get color legend of bubble tree
ColorLegend := BubbleTree.Legends.Item(0) As IVZColorLegendBase;
// Disable displaying of the "No Data" element
ColorLegend.NoDataVisible := False;
// Get color legend scale
Scale := ColorLegend.Scale;
// Determine the number of elements equal to two
Scale.ItemsCount := 2;
// Save changes, made in express report
(Analyzer As IMetabaseObject).Save;
End Sub UserProc;
After executing the example the number of scale items that is equal to two is set for bubble tree color legend, and displaying of the No Data element is also disabled:
See also: