WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PieSeries

    Show / Hide Table of Contents

    Class PieSeries

    Inheritance
    System.Object
    ChartSeriesBase
    ChartSeries
    AdornmentSeries
    AccumulationSeriesBase
    CircularSeriesBase
    PieSeries
    Implements
    ICloneable
    ISegmentSelectable
    Inherited Members
    CircularSeriesBase.EnableSmartLabelsProperty
    CircularSeriesBase.ShowMarkerAtLineEndProperty
    CircularSeriesBase.ConnectorTypeProperty
    CircularSeriesBase.ConnectorLinePositionProperty
    CircularSeriesBase.LabelPositionProperty
    CircularSeriesBase.StartAngleProperty
    CircularSeriesBase.EndAngleProperty
    CircularSeriesBase.ExplodeRadiusProperty
    CircularSeriesBase.GroupModeProperty
    CircularSeriesBase.GroupToProperty
    CircularSeriesBase.DegreeToRadianConverter(Double)
    CircularSeriesBase.EnableSmartLabels
    CircularSeriesBase.ShowMarkerAtLineEnd
    CircularSeriesBase.ConnectorType
    CircularSeriesBase.ConnectorLinePosition
    CircularSeriesBase.LabelPosition
    CircularSeriesBase.StartAngle
    CircularSeriesBase.EndAngle
    CircularSeriesBase.ExplodeRadius
    CircularSeriesBase.GroupMode
    CircularSeriesBase.GroupTo
    AccumulationSeriesBase.YBindingPathProperty
    AccumulationSeriesBase.ExplodeIndexProperty
    AccumulationSeriesBase.ExplodeAllProperty
    AccumulationSeriesBase.ExplodeOnMouseClickProperty
    AccumulationSeriesBase.SegmentSelectionBrushProperty
    AccumulationSeriesBase.SelectedIndexProperty
    AccumulationSeriesBase.SelectedIndexChanged(Int32, Int32)
    AccumulationSeriesBase.GeneratePoints()
    AccumulationSeriesBase.OnSeriesMouseUp(Object, Point)
    AccumulationSeriesBase.OnSeriesMouseDown(Object, Point)
    AccumulationSeriesBase.OnBindingPathChanged(DependencyPropertyChangedEventArgs)
    AccumulationSeriesBase.YBindingPath
    AccumulationSeriesBase.ExplodeIndex
    AccumulationSeriesBase.ExplodeAll
    AccumulationSeriesBase.ExplodeOnMouseClick
    AccumulationSeriesBase.SegmentSelectionBrush
    AccumulationSeriesBase.SelectedIndex
    AccumulationSeriesBase.SelectedSegment
    AccumulationSeriesBase.SelectedSegments
    AccumulationSeriesBase.YValues
    AdornmentSeries.AdornmentsInfoProperty
    AdornmentSeries.AddColumnAdornments(Double[])
    AdornmentSeries.AddAdornmentAtXY(Double, Double, Int32)
    AdornmentSeries.AddAreaAdornments(IList<Double>[])
    AdornmentSeries.OnApplyTemplate()
    AdornmentSeries.ClearUnUsedAdornments(Int32)
    AdornmentSeries.AdornmentsInfo
    AdornmentSeries.AdornmentLabelCreated
    ChartSeries.StrokeProperty
    ChartSeries.StrokeThicknessProperty
    ChartSeries.GetDataPointIndex(Double, Double)
    ChartSeries.OnCreateAutomationPeer()
    ChartSeries.StrokeThickness
    ChartSeries.Area
    ChartSeries.Stroke
    ChartSeriesBase.SpacingProperty
    ChartSeriesBase.TooltipTemplateProperty
    ChartSeriesBase.ShowTooltipProperty
    ChartSeriesBase.ListenPropertyChangeProperty
    ChartSeriesBase.IsSeriesVisibleProperty
    ChartSeriesBase.XBindingPathProperty
    ChartSeriesBase.SortByProperty
    ChartSeriesBase.SortDirectionProperty
    ChartSeriesBase.IsSortDataProperty
    ChartSeriesBase.PaletteProperty
    ChartSeriesBase.ItemsSourceProperty
    ChartSeriesBase.TrackBallLabelTemplateProperty
    ChartSeriesBase.InteriorProperty
    ChartSeriesBase.LabelProperty
    ChartSeriesBase.LegendIconProperty
    ChartSeriesBase.LegendIconTemplateProperty
    ChartSeriesBase.VisibilityOnLegendProperty
    ChartSeriesBase.SeriesSelectionBrushProperty
    ChartSeriesBase.ColorModelProperty
    ChartSeriesBase.SegmentColorPathProperty
    ChartSeriesBase.EnableAnimationProperty
    ChartSeriesBase.AnimationDurationProperty
    ChartSeriesBase.EmptyPointValueProperty
    ChartSeriesBase.EmptyPointStyleProperty
    ChartSeriesBase.EmptyPointSymbolTemplateProperty
    ChartSeriesBase.ShowEmptyPointsProperty
    ChartSeriesBase.EmptyPointInteriorProperty
    ChartSeriesBase.Segments
    ChartSeriesBase.Timer
    ChartSeriesBase.InitialDelayTimer
    ChartSeriesBase.ChartTransformer
    ChartSeriesBase.YPaths
    ChartSeriesBase.GetSpacing(DependencyObject)
    ChartSeriesBase.SetSpacing(DependencyObject, Double)
    ChartSeriesBase.FindNearestChartPoint(Point, Double, Double, Double)
    ChartSeriesBase.CreateEmptyPointSegments(IList<Double>, List<List<Double>>, List<List<Double>>)
    ChartSeriesBase.UpdateSegments(Int32, NotifyCollectionChangedAction)
    ChartSeriesBase.GetAvailableSize()
    ChartSeriesBase.SuspendNotification()
    ChartSeriesBase.ResumeNotification()
    ChartSeriesBase.Invalidate()
    ChartSeriesBase.GetSideBySideInfo(ChartSeriesBase)
    ChartSeriesBase.Clone()
    ChartSeriesBase.GetXValues()
    ChartSeriesBase.SetTooltipDuration()
    ChartSeriesBase.IsTooltipAvailable(Canvas)
    ChartSeriesBase.SetDoubleAnimation(ChartTooltip)
    ChartSeriesBase.SetIndividualPoint(Int32, Object, Boolean)
    ChartSeriesBase.SetIndividualDataTablePoint(Int32, Object, Boolean)
    ChartSeriesBase.ClearUnUsedSegments(Int32)
    ChartSeriesBase.OnMouseLeftButtonUp(MouseButtonEventArgs)
    ChartSeriesBase.OnMouseLeftButtonDown(MouseButtonEventArgs)
    ChartSeriesBase.OnMouseMove(MouseEventArgs)
    ChartSeriesBase.OnMouseLeave(MouseEventArgs)
    ChartSeriesBase.Position(Point, ChartTooltip)
    ChartSeriesBase.UpdateArea()
    ChartSeriesBase.GetPreviousSeries(ChartSeriesBase)
    ChartSeriesBase.GeneratePoints(String[], IList<Double>[])
    ChartSeriesBase.OnDataSourceChanged(DependencyPropertyChangedEventArgs)
    ChartSeriesBase.EmptyPointValue
    ChartSeriesBase.EmptyPointStyle
    ChartSeriesBase.EmptyPointSymbolTemplate
    ChartSeriesBase.ShowEmptyPoints
    ChartSeriesBase.EmptyPointInterior
    ChartSeriesBase.DataCount
    ChartSeriesBase.IsSortData
    ChartSeriesBase.SortDirection
    ChartSeriesBase.SortBy
    ChartSeriesBase.TooltipTemplate
    ChartSeriesBase.ShowTooltip
    ChartSeriesBase.ListenPropertyChange
    ChartSeriesBase.Adornments
    ChartSeriesBase.IsSeriesVisible
    ChartSeriesBase.Palette
    ChartSeriesBase.ItemsSource
    ChartSeriesBase.TrackBallLabelTemplate
    ChartSeriesBase.Interior
    ChartSeriesBase.Label
    ChartSeriesBase.LegendIcon
    ChartSeriesBase.LegendIconTemplate
    ChartSeriesBase.VisibilityOnLegend
    ChartSeriesBase.SeriesSelectionBrush
    ChartSeriesBase.ColorModel
    ChartSeriesBase.XBindingPath
    ChartSeriesBase.SegmentColorPath
    ChartSeriesBase.EnableAnimation
    ChartSeriesBase.AnimationDuration
    ChartSeriesBase.IsSideBySide
    ChartSeriesBase.IsLinear
    ChartSeriesBase.IsAreaTypeSeries
    ChartSeriesBase.IsBitmapSeries
    ChartSeriesBase.IsColorPathSeries
    ChartSeriesBase.IsIndexed
    ChartSeriesBase.ColorValues
    ChartSeriesBase.ActualXValues
    ChartSeriesBase.SelectedSegmentsIndexes
    ChartSeriesBase.ActualXAxis
    ChartSeriesBase.ActualYAxis
    ChartSeriesBase.IsStacked
    ChartSeriesBase.PropertyChanged
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.SfChart.WPF.dll
    Syntax
    public class PieSeries : CircularSeriesBase, ICloneable, ISegmentSelectable

    Constructors

    PieSeries()

    Called when instance created for PieSeries

    Declaration
    public PieSeries()

    Fields

    PieCoefficientProperty

    The DependencyProperty for PieCoefficient property.

    Declaration
    public static readonly DependencyProperty PieCoefficientProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    Properties

    PieCoefficient

    Gets or sets a value that specifies the ratio of pie size with respect to chart area. This is a bindable property.

    Declaration
    public double PieCoefficient { get; set; }
    Property Value
    Type Description
    System.Double

    The value ranges from 0 to 1.

    Methods

    CloneSeries(DependencyObject)

    Returns the instance of PieSeries series.

    Declaration
    protected override DependencyObject CloneSeries(DependencyObject obj)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    object

    Returns
    Type Description
    System.Windows.DependencyObject
    Overrides
    CircularSeriesBase.CloneSeries(DependencyObject)

    CreateAdornment(AdornmentSeries, Double, Double, Double, Double)

    Method implementation for Create Adornments.

    Declaration
    protected override ChartAdornment CreateAdornment(AdornmentSeries series, double xVal, double yVal, double angle, double radius)
    Parameters
    Type Name Description
    AdornmentSeries series

    series

    System.Double xVal

    xvalue

    System.Double yVal

    yvalue

    System.Double angle

    angle

    System.Double radius

    radius

    Returns
    Type Description
    ChartAdornment
    Overrides
    AdornmentSeries.CreateAdornment(AdornmentSeries, Double, Double, Double, Double)

    CreateSegment()

    Creates an instance of series segment.

    Declaration
    protected override ChartSegment CreateSegment()
    Returns
    Type Description
    ChartSegment

    Returns the instance of corresponding series segment.

    Overrides
    ChartSeries.CreateSegment()
    Remarks

    This customization is not supported for fast type series and technical indicators.

    Examples

    This sample shows how to call the CreateSegment() method to customize the line series segments.

    public class LineSeriesExt : LineSeries
    {​ 
        protected override ChartSegment CreateSegment()
        {​
            return new LineSegmentExt();
        }​
    }​
    
    public class LineSegmentExt : LineSegment
    {​
        public override UIElement CreateVisual(Size size)
        {​
            // Write your customization code here.
        }​
    
        public override void Update(IChartTransformer transformer)
        {​
            // Write your customization code here.
        }​
    }

    CreateSegments()

    Creates the segments of PieSeries.

    Declaration
    public override void CreateSegments()
    Overrides
    AdornmentSeries.CreateSegments()

    CreateTransformer(Size, Boolean)

    Return IChartTranform value based upon the given size.

    Declaration
    protected override IChartTransformer CreateTransformer(Size size, bool create)
    Parameters
    Type Name Description
    System.Windows.Size size

    size

    System.Boolean create

    bool

    Returns
    Type Description
    Syncfusion.UI.Xaml.Charts.IChartTransformer
    Overrides
    ChartSeriesBase.CreateTransformer(Size, Boolean)

    OnDataSourceChanged(IEnumerable, IEnumerable)

    Called when ItemsSource changed.

    Declaration
    protected override void OnDataSourceChanged(IEnumerable oldValue, IEnumerable newValue)
    Parameters
    Type Name Description
    System.Collections.IEnumerable oldValue

    old value

    System.Collections.IEnumerable newValue

    new value

    Overrides
    AccumulationSeriesBase.OnDataSourceChanged(IEnumerable, IEnumerable)

    SetExplodeAll()

    Virtual method for ExplodeAll.

    Declaration
    protected override void SetExplodeAll()
    Overrides
    AccumulationSeriesBase.SetExplodeAll()

    SetExplodeIndex(Int32)

    Method implementation for ExplodeIndex.

    Declaration
    protected override void SetExplodeIndex(int i)
    Parameters
    Type Name Description
    System.Int32 i
    Overrides
    AccumulationSeriesBase.SetExplodeIndex(Int32)

    SetExplodeRadius()

    Virtual Method for ExplodeRadius.

    Declaration
    protected override void SetExplodeRadius()
    Overrides
    AccumulationSeriesBase.SetExplodeRadius()

    Implements

    ICloneable
    ISegmentSelectable

    See Also

    PieSegment
    DoughnutSeries
    DoughnutSegment
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved