Class PyramidSeries
Represents a series which displays data in the form of a triangle with lines dividing it into sections and each section has a different width. Depending on the Y coordinates, this width indicates a level of hierarchy among other categories.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.UWP.dll
Syntax
public class PyramidSeries : TriangularSeriesBase, ICloneable, ISegmentSelectable
Remarks
It is a single series, representing data as portions of 100% and does not use any axes.
Examples
<chart:SfChart>
<chart:SfChart.DataContext>
<local:ViewModel/>
</chart:SfChart.DataContext>
<chart:PyramidSeries
ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"/>
</chart:SfChart>
Constructors
PyramidSeries()
Initializes a new instance of the PyramidSeries class.
Declaration
public PyramidSeries()
Fields
PyramidModeProperty
Identifies the PyramidMode
dependency property.
Declaration
public static readonly DependencyProperty PyramidModeProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty | The identifier for |
Properties
PyramidMode
Gets or sets a value indicating whether the y value should interpret the length or surface of the pyramid block.
Declaration
public ChartPyramidMode PyramidMode { get; set; }
Property Value
Type | Description |
---|---|
ChartPyramidMode | One of the ChartPyramidMode enumeration values. The default value is Linear |
Methods
CloneSeries(DependencyObject)
Returns the instance of PyramidSeries series.
Declaration
protected override DependencyObject CloneSeries(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | obj | object |
Returns
Type |
---|
Windows.UI.Xaml.DependencyObject |
Overrides
CreateAdornment(AdornmentSeries, Double, Double, Double, Double)
Creates the adornment of PyramidSeries.
Declaration
protected override ChartAdornment CreateAdornment(AdornmentSeries series, double xVal, double yVal, double height, double currY)
Parameters
Type | Name | Description |
---|---|---|
AdornmentSeries | series | |
System.Double | xVal | |
System.Double | yVal | |
System.Double | height | |
System.Double | currY |
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 segment of PyramidSeries.
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 |
---|---|---|
Windows.Foundation.Size | size | Size of the panel. |
System.Boolean | create | Used to specify whether to create the charttransform for not. |
Returns
Type | Description |
---|---|
Syncfusion.UI.Xaml.Charts.IChartTransformer | returns IChartTransformer |
Overrides
GetSurfaceHeight(Double, Double)
To get the SurfaceHeight for PyramidSeries.
Declaration
public static double GetSurfaceHeight(double y, double surface)
Parameters
Type | Name | Description |
---|---|---|
System.Double | y | |
System.Double | surface |
Returns
Type |
---|
System.Double |
SetExplodeIndex(Int32)
Method implementation for ExplodeIndex.
Declaration
protected override void SetExplodeIndex(int i)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | i | Exploded segment index. |