Class ChartBehavior
Serves as a base class for all chart behaviors.
Inheritance
System.Object
ChartBehavior
Namespace: Syncfusion.SfChart.XForms
Assembly: Syncfusion.SfChart.XForms.dll
Syntax
public abstract class ChartBehavior : Element, IThemeElement
Remarks
You can handle the SfChart directly in Chart behavior, which will be helpful in designing the Chart application in MVVM pattern. You can add a custom behavior to the SfChart by inheriting a class from the ChartBehaviors.
Constructors
ChartBehavior()
Initializes a new instance of the ChartBehavior class.
Declaration
public ChartBehavior()
Properties
Chart
Gets the SfChart for the ChartBehavior.
Declaration
public SfChart Chart { get; }
Property Value
Type | Description |
---|---|
SfChart | This property take |
Methods
DoubleTap(Single, Single)
Called when pointer double tap in SfChart.
Declaration
protected virtual void DoubleTap(float pointX, float pointY)
Parameters
Type | Name | Description |
---|---|---|
System.Single | pointX | point x value. |
System.Single | pointY | point y value. |
OnTouchDown(Single, Single)
Called when pointer touch down in SfChart.
Declaration
protected virtual void OnTouchDown(float pointX, float pointY)
Parameters
Type | Name | Description |
---|---|---|
System.Single | pointX | point x value. |
System.Single | pointY | point y value. |
OnTouchMove(Single, Single)
Called when pointer touch move in SfChart.
Declaration
protected virtual void OnTouchMove(float pointX, float pointY)
Parameters
Type | Name | Description |
---|---|---|
System.Single | pointX | point x value. |
System.Single | pointY | point y value. |
OnTouchUp(Single, Single)
Called when pointer touch up in SfChart.
Declaration
protected virtual void OnTouchUp(float pointX, float pointY)
Parameters
Type | Name | Description |
---|---|---|
System.Single | pointX | point x value. |
System.Single | pointY | point y value. |