Class CartesianSeries
Serves as a base class for all cartesian chart types such as ColumnSeries, BarSeries, AreaSeries etc.
Inheritance
Inherited Members
Namespace: Syncfusion.SfChart.XForms
Assembly: Syncfusion.SfChart.XForms.dll
Syntax
public abstract class CartesianSeries : ChartSeries, IThemeElement
Constructors
CartesianSeries()
Declaration
protected CartesianSeries()
Fields
IsTransposedProperty
Gets or sets the value that indicates whether to change the Cartesian chart orientation. This is a bindable property.
Declaration
public static readonly BindableProperty IsTransposedProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ShowTrackballInfoProperty
Gets or sets the value that indicates whether to show trackball for cartesian Series. This is a bindable property.
Declaration
public static readonly BindableProperty ShowTrackballInfoProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TrackballLabelTemplateProperty
Gets or sets the template for the Trackball label of chart series. This property is used to customize the appearance of series trackball label. This is a bindable property.
Declaration
public static readonly BindableProperty TrackballLabelTemplateProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TrendlinesProperty
Gets or sets a collection of ChartTrendline for series. This is a bindable property.
Declaration
public static readonly BindableProperty TrendlinesProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
XAxisProperty
Gets or sets an additional horizontal axis for an individual series. This is a bindable property.
Declaration
public static readonly BindableProperty XAxisProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
YAxisProperty
Gets or sets an additional vertical axis for an individual series. This is a bindable property.
Declaration
public static readonly BindableProperty YAxisProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
IsTransposed
Gets or sets a value indicating whether to change the cartesian chart orientation. This is a bindable property.
Declaration
public bool IsTransposed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | This property takes the boolean value. |
ShowTrackballInfo
Gets or sets a value indicating whether to show trackball for cartesian series. This is a bindable property.
Declaration
public bool ShowTrackballInfo { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | This property takes the boolean value. |
TrackballLabelTemplate
Gets or sets the template for the trackball label of chart series. This is a bindable property.
Declaration
public DataTemplate TrackballLabelTemplate { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.DataTemplate | This property takes the DataTemplate value. |
Trendlines
Gets or sets a collection of trendlines for cartesian series.
Declaration
public ChartTrendlineCollection Trendlines { get; set; }
Property Value
Type |
---|
ChartTrendlineCollection |
XAxis
Gets or sets an additional horizontal axis for an individual series. This is a bindable property.
Declaration
public ChartAxis XAxis { get; set; }
Property Value
Type | Description |
---|---|
ChartAxis | This property gets or sets the any of the following axis instance as value: |
YAxis
Gets or sets an additional vertical axis for an individual series. This is a bindable property.
Declaration
public RangeAxisBase YAxis { get; set; }
Property Value
Type | Description |
---|---|
RangeAxisBase | This property gets or sets the NumericalAxis as its value. |
Remarks
Secondary axis doesn't supports CategoryAxis
or DateTimeAxis
, except for Bar type series.
Methods
GetDataPoints(Double, Double, Double, Double)
Method to get the data points from the given range.
Declaration
public List<object> GetDataPoints(double startX, double endX, double startY, double endY)
Parameters
Type | Name | Description |
---|---|---|
System.Double | startX | start x. |
System.Double | endX | end x. |
System.Double | startY | start y. |
System.Double | endY | end y. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Object> | The data points. |
Remarks
This method will work only after render the series in visual.
GetDataPoints(Rectangle)
Method to get the visible range data points.
Declaration
public List<object> GetDataPoints(Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
Xamarin.Forms.Rectangle | rect | The rectangle. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Object> | The data points. |
Remarks
This method will work only after render the series in visual.
OnBindingContextChanged()
Override this method to execute an action when the BindingContext changes.
Declaration
protected override void OnBindingContextChanged()
Overrides
OnParentSet()
Method used to set the parent.
Declaration
protected override void OnParentSet()