Class PieSeries
Inheritance
Inherited Members
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 |
---|
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 |
---|
System.Windows.DependencyObject |
Overrides
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 |
---|
ChartAdornment |
Overrides
CreateSegment()
Creates an instance of series segment.
Declaration
protected override ChartSegment CreateSegment()
Returns
Type | Description |
---|---|
ChartSegment | Returns the instance of corresponding series segment. |
Overrides
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
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 |
---|
Syncfusion.UI.Xaml.Charts.IChartTransformer |
Overrides
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
SetExplodeAll()
Virtual method for ExplodeAll.
Declaration
protected override void SetExplodeAll()
Overrides
SetExplodeIndex(Int32)
Method implementation for ExplodeIndex.
Declaration
protected override void SetExplodeIndex(int i)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | i |
Overrides
SetExplodeRadius()
Virtual Method for ExplodeRadius.
Declaration
protected override void SetExplodeRadius()