IVZMapChartPie.UseInvertedAngles

Fore syntax

UseInvertedAngles: Boolean;

Fore.NET syntax

UseInvertedAngles: boolean;

Description

The UseInvertedAngles property determines whether pie chart sectors are displayed reversely.

Comments

Available values:

For example:

Fore example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier. Report contains a map. The map displays pie factors and two arrows that go from one area. To display pie factors on a map:

  1. Select the Pie radio button in the Facts.

  2. Select the Value and Dimension elements.

To work with arrows, study requirements for showing arrows.

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

Sub UserProc;
Var
    Metabase: IMetabase;
    EaxAnalyzer: IEaxAnalyzer;
    EMap: IVZMapChart;
    MapPie: IVZMapChartPie;
Begin
    // Get metabase object
    Metabase := MetabaseClass.Active;
    // Get express report
    EaxAnalyzer := Metabase.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
    // Get express report map as a visualizer
    EMap := EaxAnalyzer.MapChart.MapChart;
    // Determine map arrow highlighting mode by source territory
    EMap.ArrowEffectsMode := MapChartArrowEffectsMode.StartShape;
    // Get pie factor
    MapPie := EMap.RootLayer.SubLayers.Item(0).Pies.Item(0);
    // If factor visibility is disabled, enable it
    If Not MapPie.Visible Then
        MapPie.Visible := True;
    End If;
    // Display factor angles reversely
    MapPie.UseInvertedAngles := True;
    // Set minimum angle of factor sectors
    MapPie.LeastAnglePart := 150;
    // Save changes
    (EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the minimum angle of factor sectors is changed, sectors are displayed reversely, highlighting mode by source territory is set for arrows (all the arrows that go from the moused over area are highlighted).

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;
    EaxAnalyzer: IEaxAnalyzer;
    EMap: IVZMapChart;
    MapPie: IVZMapChartPie;
Begin
    // Get metabase object
    Metabase := Params.Metabase;
    // Get express report
    EaxAnalyzer := Metabase.ItemById["EXPRESS_REPORT"].Edit() As IEaxAnalyzer;
    // Get express report map as a visualizer
    EMap := EaxAnalyzer.MapChart.MapChart;
    // Determine map arrow highlighting mode by source territory
    EMap.ArrowEffectsMode := MapChartArrowEffectsMode.mcaemStartShape;
    // Get pie factor
    MapPie := EMap.RootLayer.SubLayers.Item[0].Pies.Item[0];
    // If factor visibility is disabled, enable it
    If Not MapPie.Visible Then
        MapPie.Visible := True;
    End If;
    // Display factor angles reversely
    MapPie.UseInvertedAngles := True;
    // Set minimum angle of factor sectors
    MapPie.LeastAnglePart := 150;
    // Save changes
    (EaxAnalyzer As IMetabaseObject).Save();
End Sub;

See also:

IVZMapChartPie.UseInvertedAngles