Class DateTimeCategoryAxis
Represents a DateTime indexed axis.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class DateTimeCategoryAxis : ChartAxisBase2D, ICloneable
Constructors
DateTimeCategoryAxis()
Declaration
public DateTimeCategoryAxis()
Fields
IntervalProperty
The DependencyProperty for Interval property.
Declaration
public static readonly DependencyProperty IntervalProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
IntervalTypeProperty
The DependencyProperty for IntervalType property.
Declaration
public static readonly DependencyProperty IntervalTypeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Properties
Interval
Gets or sets a value that determines the interval between labels. If this property is not set, interval will be calculated automatically.
Declaration
public double Interval { get; set; }
Property Value
| Type |
|---|
| System.Double |
IntervalType
Gets or sets the type of interval to be displayed in axis.
Declaration
public DateTimeIntervalType IntervalType { get; set; }
Property Value
| Type |
|---|
| DateTimeIntervalType |
Remarks
This property hold the values ranges from Year, Months to Milliseconds.
Methods
CalculateActualInterval(DoubleRange, Size)
Calculates actual interval
Declaration
protected override double CalculateActualInterval(DoubleRange range, Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| DoubleRange | range | |
| System.Windows.Size | availableSize |
Returns
| Type |
|---|
| System.Double |
Overrides
CalculateNiceInterval(DoubleRange, Size)
Calculates nice interval
Declaration
protected override double CalculateNiceInterval(DoubleRange actualRange, Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| DoubleRange | actualRange | |
| System.Windows.Size | availableSize |
Returns
| Type |
|---|
| System.Double |
Overrides
CloneAxis(DependencyObject)
Creates a copy of the ChartAxis.
Declaration
protected override DependencyObject CloneAxis(DependencyObject obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyObject | obj |
Returns
| Type | Description |
|---|---|
| System.Windows.DependencyObject | A cloned ChartAxis instance with properties copied from the current instance. |
Overrides
GenerateVisibleLabels()
Method implementation for Create VisibleLabels for DateTime axis
Declaration
protected override void GenerateVisibleLabels()
Overrides
GetLabelContent(Double)
Method implementation for Get LabelContent for given position
Declaration
public override object GetLabelContent(double position)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | position |
Returns
| Type |
|---|
| System.Object |
Overrides
OnIntervalChanged(DependencyPropertyChangedEventArgs)
Called when Interval property changed
Declaration
protected virtual void OnIntervalChanged(DependencyPropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | e |