Class ChartAxisBase2D
Represents a control that display the label, ticks and lines for axis in 2D.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public abstract class ChartAxisBase2D : ChartAxis, ICloneable
Constructors
ChartAxisBase2D()
Called when instance created for ChartAxisBase2D
Declaration
public ChartAxisBase2D()
Fields
AutoScrollingDeltaProperty
Using a DependencyProperty as the backing store for AutoScrollingDelta. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty AutoScrollingDeltaProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
AutoScrollingModeProperty
Using a DependencyProperty as the backing store for AutoScrollingMode. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty AutoScrollingModeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DeferredScrollingProperty
The DependencyProperty for DeferredScrolling property.
Declaration
public static readonly DependencyProperty DeferredScrollingProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
EnableScrollBarProperty
The DependencyProperty for EnableScrollBar property.
Declaration
public static readonly DependencyProperty EnableScrollBarProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
EnableScrollBarResizingProperty
The DependencyProperty for EnableScrollBarResizing property.
Declaration
public static readonly DependencyProperty EnableScrollBarResizingProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
EnableTouchModeProperty
The DependencyProperty for EnableTouchMode property.
Declaration
public static readonly DependencyProperty EnableTouchModeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IncludeStripLineRangeProperty
The DependencyProperty for IncludeStripLineRange property.
Declaration
public static readonly DependencyProperty IncludeStripLineRangeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
LabelBorderBrushProperty
The DependencyProperty for LabelBorderBrush property
Declaration
public static readonly DependencyProperty LabelBorderBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
LabelBorderWidthProperty
The DependencyProperty for LabelBorderWidth property
Declaration
public static readonly DependencyProperty LabelBorderWidthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MultiLevelLabelsBorderTypeProperty
The Dependency Property for MultiLevelLabelsBorderType
Declaration
public static readonly DependencyProperty MultiLevelLabelsBorderTypeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MultiLevelLabelsProperty
The DependencyProperty of MultiLevelLabels property
Declaration
public static readonly DependencyProperty MultiLevelLabelsProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PolarAngleProperty
The Dependency property of PolarAngle property
Declaration
public static readonly DependencyProperty PolarAngleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ShowLabelBorderProperty
The Dependency property ShowLabelBorder
Declaration
public static readonly DependencyProperty ShowLabelBorderProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
StripLinesProperty
The DependencyProperty for StripLines property.
Declaration
public static readonly DependencyProperty StripLinesProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ZoomFactorProperty
The DependencyProperty for ZoomFactor property.
Declaration
public static readonly DependencyProperty ZoomFactorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ZoomPositionProperty
The DependencyProperty for ZoomPosition property.
Declaration
public static readonly DependencyProperty ZoomPositionProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
AutoScrollingDelta
Gets or sets the value that determines the range of value to be visible during auto scrolling. This is a bindable property.
Declaration
public double AutoScrollingDelta { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes the double value |
AutoScrollingMode
Gets or sets the mode to determine whether the axis should be auto scrolled at start or end position by using ChartAutoScrollingMode enum type.
Declaration
public ChartAutoScrollingMode AutoScrollingMode { get; set; }
Property Value
Type |
---|
ChartAutoScrollingMode |
DeferredScrolling
Gets or sets a value indicating whether to enable scrollbar to suspend value updates for every thumb value changes.
Declaration
public bool DeferredScrolling { get; set; }
Property Value
Type |
---|
System.Boolean |
EnableScrollBar
Gets or sets a value indicating whether to enable the scrollbar for the SfChart.
Declaration
public bool EnableScrollBar { get; set; }
Property Value
Type |
---|
System.Boolean |
EnableScrollBarResizing
Gets or sets a value indicating whether to enable the legacy style for the scroll bar.
Declaration
public bool EnableScrollBarResizing { get; set; }
Property Value
Type |
---|
System.Boolean |
EnableTouchMode
Gets or sets a value indicating whether to enable or disable touch mode for the scroll bar.
Declaration
public bool EnableTouchMode { get; set; }
Property Value
Type |
---|
System.Boolean |
IncludeStripLineRange
Gets or sets a value indicating whether to enable the axis to include the annotation range, while calculating the axis range.
Declaration
public bool IncludeStripLineRange { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
This feature is to avoid cropping or missing of annotation, which doesn't falls inside the axis range.
LabelBorderBrush
Gets or sets the LabelBorderBrush
Declaration
public Brush LabelBorderBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
LabelBorderWidth
Gets or sets the LabelBorderWidth
Declaration
public double LabelBorderWidth { get; set; }
Property Value
Type |
---|
System.Double |
MultiLevelLabels
Gets or sets the multi level labels collection
Declaration
public ChartMultiLevelLabels MultiLevelLabels { get; set; }
Property Value
Type |
---|
ChartMultiLevelLabels |
MultiLevelLabelsBorderType
Gets or sets the BorderType for Multi level labels
Declaration
public BorderType MultiLevelLabelsBorderType { get; set; }
Property Value
Type |
---|
BorderType |
PolarAngle
Gets or sets the start angle Polar or radar series.
Declaration
public ChartPolarAngle PolarAngle { get; set; }
Property Value
Type |
---|
ChartPolarAngle |
ShowLabelBorder
Gets or sets a value indicating whether to show the border around axis label
Declaration
public bool ShowLabelBorder { get; set; }
Property Value
Type |
---|
System.Boolean |
StripLines
Gets or sets the striplines collection for the SfChart.
Declaration
public ChartStripLines StripLines { get; set; }
Property Value
Type |
---|
ChartStripLines |
ZoomFactor
Gets or sets the value, between 0 to 1, that indicates the zoom level of the axis.
Declaration
public double ZoomFactor { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Value must fall within 0 to 1. |
ZoomPosition
Gets or sets the value, between 0 to 1, that indicates the start position in the actual range of the axis.
Declaration
public double ZoomPosition { get; set; }
Property Value
Type |
---|
System.Double |
Remarks
This scrolls or pan the chart to particular range.
Methods
CalculateVisibleRange(Size)
Calculates the visible range.
Declaration
protected override void CalculateVisibleRange(Size avalableSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | avalableSize |
Overrides
CloneAxis(DependencyObject)
Declaration
protected override DependencyObject CloneAxis(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj |
Returns
Type |
---|
System.Windows.DependencyObject |
Overrides
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.
Declaration
public override void OnApplyTemplate()
OnAxisBoundsChanged(ChartAxisBoundsEventArgs)
Called when the axis bounds changed.
Declaration
protected override void OnAxisBoundsChanged(ChartAxisBoundsEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ChartAxisBoundsEventArgs | args | Which indicates ChartAxisBoundsEventArgs. |
Overrides
PolarCoefficientToValue(Double)
Declaration
public override double PolarCoefficientToValue(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value |
Returns
Type |
---|
System.Double |
Overrides
ValueToPolarCoefficient(Double)
Declaration
public override double ValueToPolarCoefficient(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value |
Returns
Type |
---|
System.Double |
Overrides
Events
LabelClicked
It invokes when axis label clicked.
Declaration
public event EventHandler<AxisLabelClickedEventArgs> LabelClicked
Event Type
Type |
---|
System.EventHandler<AxisLabelClickedEventArgs> |