Class DateTimeAxis
Class implementation for DateTimeAxis
Inheritance
System.Object
DateTimeAxis
Assembly: Syncfusion.SfChart.UWP.dll
Syntax
public class DateTimeAxis : RangeAxisBase, ICloneable, IRangeAxis
Constructors
DateTimeAxis()
Declaration
Fields
Declaration
public static readonly DependencyProperty AutoScrollingDeltaTypeProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
CloseTimeProperty
The DependencyProperty for CloseTime property.
Declaration
public static readonly DependencyProperty CloseTimeProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
EnableBusinessHoursProperty
Declaration
public static readonly DependencyProperty EnableBusinessHoursProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
IntervalProperty
The DependencyProperty for Interval property.
Declaration
public static readonly DependencyProperty IntervalProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
IntervalTypeProperty
Declaration
public static readonly DependencyProperty IntervalTypeProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
MaximumProperty
The DependencyProperty for Maximum property.
Declaration
public static readonly DependencyProperty MaximumProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
MinimumProperty
The DependencyProperty for Minimum property.
Declaration
public static readonly DependencyProperty MinimumProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
OpenTimeProperty
The DependencyProperty for OpenTime property.
Declaration
public static readonly DependencyProperty OpenTimeProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
RangePaddingProperty
Declaration
public static readonly DependencyProperty RangePaddingProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
WorkingDaysProperty
Declaration
public static readonly DependencyProperty WorkingDaysProperty
Field Value
Type |
Description |
Windows.UI.Xaml.DependencyProperty |
|
Properties
Gets or sets the date time unit of the value specified in the AutoScrollingDelta
property.
Declaration
public DateTimeIntervalType AutoScrollingDeltaType { get; set; }
Property Value
CloseTime
Gets or sets the business closing time.
Declaration
public double CloseTime { get; set; }
Property Value
Type |
Description |
System.Double |
|
EnableBusinessHours
Gets or sets a value indicating whether to enable only the business hours for the DateTime axis.
Declaration
public bool EnableBusinessHours { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
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 |
Description |
System.Double |
|
IntervalType
Gets or sets the type of interval to be displayed in axis.
Declaration
public DateTimeIntervalType IntervalType { get; set; }
Property Value
Maximum
Gets or sets the maximum value for the axis range.
Declaration
public object Maximum { get; set; }
Property Value
Type |
Description |
System.Object |
|
Minimum
Gets or sets the minimum value for the axis range.
Declaration
public object Minimum { get; set; }
Property Value
Type |
Description |
System.Object |
|
OpenTime
Gets or sets the business open time.
Declaration
public double OpenTime { get; set; }
Property Value
Type |
Description |
System.Double |
|
RangePadding
Gets or sets the padding used to shift the DateTimeAxis range inside or outside.
Declaration
public DateTimeRangePadding RangePadding { get; set; }
Property Value
Type |
Description |
DateTimeRangePadding |
Additional , to extend the range,
Round , to round-off the range,
None , do nothing,
Auto , auto range based on type of series.
|
WorkingDays
Gets or sets the flagged enum to selected the list of working days in a business week.
Declaration
public Day WorkingDays { get; set; }
Property Value
Methods
ApplyRangePadding(DoubleRange, Double)
Apply padding based on interval
Declaration
protected override DoubleRange ApplyRangePadding(DoubleRange range, double interval)
Parameters
Type |
Name |
Description |
DoubleRange |
range |
|
System.Double |
interval |
|
Returns
Overrides
CalcNonWorkingHours(DateTime, DateTime, String, Double)
Calculate the non working hours between two dates
Declaration
public double CalcNonWorkingHours(DateTime startDate, DateTime endDate, string workingDays, double nonWorkingHoursPerDay)
Parameters
Type |
Name |
Description |
System.DateTime |
startDate |
|
System.DateTime |
endDate |
|
System.String |
workingDays |
|
System.Double |
nonWorkingHoursPerDay |
|
Returns
Type |
Description |
System.Double |
|
CalculateActualInterval(DoubleRange, Size)
Calculates actual interval
Declaration
protected override double CalculateActualInterval(DoubleRange range, Size availableSize)
Parameters
Type |
Name |
Description |
DoubleRange |
range |
|
Windows.Foundation.Size |
availableSize |
|
Returns
Type |
Description |
System.Double |
|
Overrides
CalculateActualRange()
Declaration
protected override DoubleRange CalculateActualRange()
Returns
Overrides
CalculateNiceInterval(DoubleRange, Size)
Declaration
protected override double CalculateNiceInterval(DoubleRange actualRange, Size availableSize)
Parameters
Type |
Name |
Description |
DoubleRange |
actualRange |
|
Windows.Foundation.Size |
availableSize |
|
Returns
Type |
Description |
System.Double |
|
Overrides
CalculateVisibleRange(Size)
Calculates the visible range.
Declaration
protected override void CalculateVisibleRange(Size availableSize)
Parameters
Type |
Name |
Description |
Windows.Foundation.Size |
availableSize |
|
Overrides
CloneAxis(DependencyObject)
Declaration
protected override DependencyObject CloneAxis(DependencyObject obj)
Parameters
Type |
Name |
Description |
Windows.UI.Xaml.DependencyObject |
obj |
|
Returns
Type |
Description |
Windows.UI.Xaml.DependencyObject |
|
Overrides
GenerateVisibleLabels()
Method implementation for 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 |
|
Returns
Type |
Description |
System.Object |
|
Overrides
OnIntervalChanged(DependencyPropertyChangedEventArgs)
Called when Interval property changed
Declaration
protected virtual void OnIntervalChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type |
Name |
Description |
Windows.UI.Xaml.DependencyPropertyChangedEventArgs |
e |
|
OnMaximumChanged(DependencyPropertyChangedEventArgs)
Called when Maximum property changed
Declaration
protected virtual void OnMaximumChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
Windows.UI.Xaml.DependencyPropertyChangedEventArgs |
args |
|
OnMinimumChanged(DependencyPropertyChangedEventArgs)
Called when minimum property Changed
Declaration
protected virtual void OnMinimumChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
Windows.UI.Xaml.DependencyPropertyChangedEventArgs |
args |
|
Implements
Extension Methods