Class DateTimeAxis3D
Class implementation for DateTimeAxis3D
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class DateTimeAxis3D : RangeAxisBase3D, ICloneable, IRangeAxis
Constructors
DateTimeAxis3D()
Declaration
public DateTimeAxis3D()
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 |
MaximumProperty
The DependencyProperty for Maximum property.
Declaration
public static readonly DependencyProperty MaximumProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MinimumProperty
The DependencyProperty for Minimum property.
Declaration
public static readonly DependencyProperty MinimumProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
RangePaddingProperty
The DependencyProperty for RangePadding property.
Declaration
public static readonly DependencyProperty RangePaddingProperty
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.
Maximum
Gets or sets the maximum value for the axis range. This is null-able property.
Declaration
public DateTime? Maximum { get; set; }
Property Value
Type |
---|
System.Nullable<System.DateTime> |
Remarks
If we didn't set the maximum value, it will be calculate from the underlying collection.
Minimum
Gets or sets the minimum value for the axis range. This is null-able property.
Declaration
public DateTime? Minimum { get; set; }
Property Value
Type |
---|
System.Nullable<System.DateTime> |
Remarks
If we didn't set the minimum value, it will be calculate from the underlying collection.
RangePadding
Gets or sets a value indicating shift to the DateTimeAxis range inside or outside.
Declaration
public DateTimeRangePadding RangePadding { get; set; }
Property Value
Type | Description |
---|---|
DateTimeRangePadding |
|
Methods
ApplyRangePadding(DoubleRange, Double)
Apply padding based on interval
Declaration
protected override DoubleRange ApplyRangePadding(DoubleRange range, double interval)
Parameters
Type | Name | Description |
---|---|---|
DoubleRange | range | The Range |
System.Double | interval | The Interval |
Returns
Type | Description |
---|---|
DoubleRange | Returns the padded range. |
Overrides
CalculateActualInterval(DoubleRange, Size)
Calculates actual interval.
Declaration
protected override double CalculateActualInterval(DoubleRange range, Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
DoubleRange | range | The Range |
System.Windows.Size | availableSize | The Available Size |
Returns
Type | Description |
---|---|
System.Double | The Actual Interval. |
Overrides
CalculateActualRange()
Calculates the actual range for the axis.
Declaration
protected override DoubleRange CalculateActualRange()
Returns
Type | Description |
---|---|
DoubleRange | Returns the calculated actual range. |
Overrides
CalculateNiceInterval(DoubleRange, Size)
Calculates the nice interval.
Declaration
protected override double CalculateNiceInterval(DoubleRange actualRange, Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
DoubleRange | actualRange | The Actual Range |
System.Windows.Size | availableSize | The Available Size |
Returns
Type | Description |
---|---|
System.Double | Returns the calculated nice interval. |
Overrides
CloneAxis(DependencyObject)
Clones the axis.
Declaration
protected override DependencyObject CloneAxis(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | The Object |
Returns
Type | Description |
---|---|
System.Windows.DependencyObject | Returns the cloned axis. |
Overrides
GenerateVisibleLabels()
Method implementation to Create VisibleLabels for DateTime axis.
Declaration
protected override void GenerateVisibleLabels()
Overrides
GetLabelContent(Double)
Return object value from the given double value
Declaration
public override object GetLabelContent(double position)
Parameters
Type | Name | Description |
---|---|---|
System.Double | position | The Position |
Returns
Type | Description |
---|---|
System.Object | Return object value from the given double value. |
Overrides
OnIntervalChanged(DependencyPropertyChangedEventArgs)
Called when Interval property changed.
Declaration
protected virtual void OnIntervalChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The Event Arguments |
OnMaximumChanged(DependencyPropertyChangedEventArgs)
Called when Maximum property changed
Declaration
protected virtual void OnMaximumChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | args | The Event Arguments |
OnMinimumChanged(DependencyPropertyChangedEventArgs)
Called when minimum property Changed
Declaration
protected virtual void OnMinimumChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | args | The Event Arguments |