IVZSizeLegendMarker.Marker

Syntax

Marker: VisualizatorSizeMarkerShape;

Marker: Prognoz.Platform.Interop.Visualizators.VisualizatorSizeMarkerShape;

Description

The Marker property determines a shape used as a size legend marker.

Example

Executing the example requires that the repository contains an express report with the EXPRESS identifier. The Size type of metric is set in the report for a bubble tree.

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

Sub UserProc;
Var
    Metabase: IMetabase;
    Analyzer: IEaxAnalyzer;
    BubbleTree: IVZBubbleTree;
    SizeLegend: IVZSizeLegend;
    Style: IVZControlStyle;
    BigImage, SmallImage: IVZResourceImage;
Begin
    
// Get repository
    Metabase := MetabaseClass.Active;
    
// Get express report
    Analyzer := Metabase.ItemById("EXPRESS").Edit As IEaxAnalyzer;
    
// Get bubble tree
    BubbleTree := Analyzer.BubbleTree.BubbleTree;
    
// Get size legend
    SizeLegend := BubbleTree.Legends.Item(1As IVZSizeLegend;
    
// Set marker as a trapezoid
    SizeLegend.Marker.Marker := VisualizatorSizeMarkerShape.Trapezoid;
    
// Save changes made in express report
    (Analyzer As IMetabaseObject).Save;
End Sub UserProc;

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Visualizators;

Public Shared Sub Main(Params: StartParams);
Var
    Metabase: IMetabase;
    Analyzer: IEaxAnalyzer;
    BubbleTree: IVZBubbleTree;
    SizeLegend: IVZSizeLegend;
    Style: IVZControlStyle;
    BigImage, SmallImage: IVZResourceImage;
Begin
    
// Get repository
    Metabase := Params.Metabase;
    
// Get express report
    Analyzer := Metabase.ItemById["EXPRESS"].Edit() As IEaxAnalyzer;
    
// Get bubble tree
    BubbleTree := Analyzer.BubbleTree.BubbleTree;
    
// Get size legend
    SizeLegend := BubbleTree.Legends.Item[1As IVZSizeLegend;
    
// Set marker as a trapezoid
    SizeLegend.Marker.Marker := VisualizatorSizeMarkerShape.vsmsTrapezoid;
    
// Save changes made in express report
    (Analyzer As IMetabaseObject).Save();
End Sub;

After executing the example, the size legend marker shape is changed to trapezoid:

See also:

IVZSizeLegendMarker