Class PyramidSeries
To render a pyramid chart, create an instance of the PyramidSeries class, and add it to Series collection property and set the required properties.
Inherited Members
Namespace: Syncfusion.SfChart.XForms
Assembly: Syncfusion.SfChart.XForms.dll
Syntax
public class PyramidSeries : TriangularSeries, IThemeElement
Remarks
PyramidSeries requires ItemsSource, XBindingPath and YBindingPath properties to be set to render the chart.
Examples
SfChart chart = new SfChart();
PyramidSeries series = new PyramidSeries();
ObservableCollection<ChartDataPoint> Data = new ObservableCollection<ChartDataPoint>
{
new ChartDataPoint("2006",28),
new ChartDataPoint("2007",68),
new ChartDataPoint("2010",38)
};
series.ItemsSource = Data;
chart.Series.Add(series);
Constructors
PyramidSeries()
Initializes a new instance of the PyramidSeries class.
Declaration
public PyramidSeries()
Fields
PyramidModeProperty
Gets or sets the mode of the pyramid. This is a bindable property.
Declaration
public static readonly BindableProperty PyramidModeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
PyramidMode
Gets or sets the mode of the pyramid to customize the rendering of pyramid series. This is a bindable property.
Declaration
public ChartPyramidMode PyramidMode { get; set; }
Property Value
Type | Description |
---|---|
ChartPyramidMode | This property take the ChartPyramidMode as its value. |