UseInvertedAngles: Boolean;
UseInvertedAngles: boolean;
The UseInvertedAngles property determines whether pie chart sectors are displayed reversely.
Available values:
True. Sectors are displayed reversely.
False. Default. Sectors are not displayed reversely.
For 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:
Select the Pie radio button in the Facts.
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).
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: