StartAngle: Double;
The StartAngle property determines an angle of rotation of pie indicator on the map counter-clockwise.
The property is set to 0 by default.
Executing the example requires that the repository contains an express report with the EXPRESS identifier containing a map with pie indicators.
Add links to the Express, Metabase, Visualizators system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Express: IEaxAnalyzer;
Map: IVZMapChart;
Layer: IVZMapChartLayer;
PiesArray: IVZPiesArray;
Pie: IVZMapChartPie;
Begin
// Get repository
MB := MetabaseClass.Active;
// Get express report
Express := MB.ItemById("Bars2_copy1").Edit As IEaxAnalyzer;
// Get map
Map := Express.MapChart.MapChart;
// Get map layer
Layer := Map.RootLayer.SubLayers.Item(0);
// Get collection of pie indicators on the layer
PiesArray := Layer.Pies;
// Get object for working with pie indicators
Pie := PiesArray.Item(0);
// Set angle of rotation of pie indicators counter-clockwise
Pie.StartAngle := 90.0;
// Set width of pie indicator borders
Pie.BorderThickness := 2.0;
// Set minimum value of pie indicator borders
Pie.LeastRadiusPart := 15.0;
// Set maximum number of sectors in pie indicators
Pie.MaxPiesCount := 2;
// Clear the collection of pie indicators
PiesArray.Clear;
// Add previously obtained object for working with pie indicators
PiesArray.Add(Pie);
// Refresh and save report
Express.RefreshAll;
(Express As IMetabaseObject).Save;
End Sub UserProc;
After executing the example, the settings are determined for pie indicators on the express report map:
Angle of rotation of pie indicators - 90 degrees counter-clockwise.
Width of pie indicator borders - 2.
Minimum value of pie indicator radius - 15.
Maximum number of sectors in pie indicators - 2.
See also: