MapPieSettings.RotationAngle Property
Gets or sets the angle by which the pie charts are rotated, relative to its default appearance.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
Double | A Double value. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to RotationAngle |
---|---|
PieChartDataAdapter |
|
Example
MapPieSettings allows specifying parameters of generated map pie charts. It can be accessed using the PieChartDataAdapter.PieSettings property.
This class contains the following properties that allow customizing the map pie chart appearance.
- MapPie.RotationDirection - allows specifying the rotation direction of pie segments.
- MapPie.RotationAngle - allows specifying the rotation angle of pie segments.
- MapPie.HoleRadiusPercent - allows specifying the hole radius as a percentage value.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-customize-the-appearance-of-automatically-generated-map-pie-charts-t212908.
<dxm:PieChartDataAdapter DataSource="{Binding Source={StaticResource pieData}, XPath=Table1}"
ItemIdDataMember="Country" ItemMinSize="10" ItemMaxSize="50">
<dxm:PieChartDataAdapter.Mappings>
<dxm:MapPieMappingInfo Latitude="CapitalLat" Longitude="CapitalLon"
SegmentId="MedalClass" SegmentValue="Quantity"/>
</dxm:PieChartDataAdapter.Mappings>
<dxm:PieChartDataAdapter.PieSettings>
<dxm:MapPieSettings
HoleRadiusPercent="{Binding ElementName=seHoleRadius, Path=Value}"
RotationDirection="{Binding ElementName=cbRotationDirection, Path=SelectedValue}"
RotationAngle="{Binding ElementName=seRotationAngle, Path=Value}"/>
</dxm:PieChartDataAdapter.PieSettings>
</dxm:PieChartDataAdapter>
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the RotationAngle property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.