Xceed Toolkit Plus for WPF v5.1 Documentation
Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit.Chart Namespace / PieLayout Class
Members Example


In This Topic
    PieLayout Class
    In This Topic

    Perform the creation, layout & arrangement of the primitives of pie charts.

    Syntax
    'Declaration
     
    Public Class PieLayout 
       Inherits LayoutEngine
    'Usage
     
    Dim instance As PieLayout
    public class PieLayout : LayoutEngine 
    Remarks
    To change the layout of a series, simply assign a different LayoutEngine-derived object to its Layout property.
    Example
    The following shows how to configure a Series to use a pie layout.
    <xctk:Chart>
      <xctk:Chart.Areas>
        <xctk:Area x:Name="_area1" Title="Area #1">
    
          <xctk:Area.Series>
            <xctk:Series x:Name="_series"
                          DefaultInterior="BlueViolet"
                          Spacing="20"
                          Title="Average"
                          ShowPointsInLegend="false"
                          ShowHintLabels="false"
                          HintLineLength="20">
              <xctk:Series.Layout>
                <xctk:PieLayout />
              </xctk:Series.Layout>
              <xctk:Series.DataPoints>
                <xctk:DataPoint X="1" Y="1" Label="Oct" />
                <xctk:DataPoint X="2" Y="2" Label="Jan"/>
                <xctk:DataPoint X="2.5" Y="1.5" Label="Feb" />
                <xctk:DataPoint X="4" Y="1" Label="Jun"/>
                <xctk:DataPoint X="1.5" Y="3" Label="Dec"/>
                <xctk:DataPoint X="5" Y="5" Label="Apr"/>
                <xctk:DataPoint X="3" Y="1" Label="Nov"/>
                <xctk:DataPoint X="4.5" Y="7" Label="Jul"/>
                <xctk:DataPoint X="3.5" Y="4.5" Label="Aug"/>
              </xctk:Series.DataPoints>
            </xctk:Series>
          </xctk:Area.Series>
        </xctk:Area>
      </xctk:Chart.Areas>
    </xctk:Chart>
    Inheritance Hierarchy

    System.Object
       Xceed.Wpf.Toolkit.Chart.LayoutEngine
          Xceed.Wpf.Toolkit.Chart.PieLayout

    Public Constructors
     NameDescription
    Public ConstructorInitializes a new instance of the PieLayout class.  
    Top
    Public Properties
     NameDescription
    Public Propertystatic (Shared in Visual Basic)Gets the default DataTemplate for a pie segment.  
    Public PropertyGets the layout mode for PieLayout. (Inherited from Xceed.Wpf.Toolkit.Chart.LayoutEngine)
    Public PropertyOverridden. 

    Gets the predefined layout type for PieLayout.

     
    Top
    Public Methods
     NameDescription
    Public MethodOverridden. Applies the default DataTemplate for a pie segment to specified series.  
    Public MethodOverridden. Arranges pie primitives for the specified series in pixel coordinates.  
    Public MethodOverridden. 

    Arranges a pie chart's ChartPrimitive instances for the specified Series in pixel coordinates.

     
    Public MethodOverridden. Creates the pie chart hint labels and lines.  
    Public MethodOverridden. Performs the layout of the ChartPrimitive objects for the specified Series in logical coordinates.  
    Top
    Protected Methods
     NameDescription
    Protected MethodArranges the hint label and line.  
    Protected MethodCreates the Geometry for a pie slice.  
    Protected MethodCreates the Geometry for single pie slice.  
    Protected MethodUnites specified x- and y-range with the specified Series x and y ranges. (Inherited from Xceed.Wpf.Toolkit.Chart.LayoutEngine)
    Top
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also