ID: String;
The ID property returns identifier of visualizer data source.
Executing the example requires that the repository contains an express report with the EXP identifier.
Add links to the Express, Metabase, Visualizators system assemblies.
Sub UserProc;
Var
Metabase: IMetabase;
EaxAnalyzer: IEaxAnalyzer;
BubbleTree: IVZBubbleTree;
DataSource: IVZMultiplyDataSource;
Begin
// Get repository object
Metabase := MetabaseClass.Active;
// Open express report
EaxAnalyzer := Metabase.ItemById("EXP").Edit As IEaxAnalyzer;
// Get bubble tree
BubbleTree := EaxAnalyzer.BubbleTree.BubbleTree;
// Get visualizer data source
DataSource := BubbleTree.ColorVisual.ColorMapping.DataSource;
// Set data source name
DataSource.Title := "Visualizator data source";
// Display information about data source
Debug.WriteLine("Data source index: " + DataSource.ID);
Debug.WriteLine("Data source title: " + DataSource.Title);
Debug.WriteLine("Maximum dimension capacity: " +
DataSource.MaxTimelineIndex.ToString);
End Sub UserProc;
After executing the example the development environment console window shows index, title and maximum dimension capacity of the data source, obtained from the settings according to which bubble tree data is mapped with its children color fill:
Data source index: DataSource2
Data source title: visualizator data source
Maximum dimension capacity: 2
See also: