Back to Devexpress

MapPieSettings.RotationDirection Property

wpf-devexpress-dot-xpf-dot-map-dot-mappiesettings-06fd11f9.md

latest3.0 KB
Original Source

MapPieSettings.RotationDirection Property

Gets or sets the direction in which pie slices should be rotated.

Namespace : DevExpress.Xpf.Map

Assembly : DevExpress.Xpf.Map.v25.2.dll

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public RotationDirection RotationDirection { get; set; }
vb
Public Property RotationDirection As RotationDirection

Property Value

TypeDescription
RotationDirection

A RotationDirection enumeration value.

|

Available values:

NameDescription
Clockwise

Specifies a clockwise pie slice rotation.

| | CounterClockwise |

Specifies a counter-clockwise pie slice rotation.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to RotationDirection
PieChartDataAdapter

.PieSettings .RotationDirection

|

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.

xaml
<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>

See Also

MapPieSettings Class

MapPieSettings Members

DevExpress.Xpf.Map Namespace