menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DateTimeAxis - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DateTimeAxis

    Class implementation for DateTimeAxis

    Inheritance
    System.Object
    ChartAxis
    ChartAxisBase2D
    RangeAxisBase
    DateTimeAxis
    Implements
    ICloneable
    IRangeAxis
    Inherited Members
    ChartAxis.ActualPlotOffset
    ChartAxis.ActualRangeChanged
    ChartAxis.ArrangeRect
    ChartAxis.AxisBoundsChanged
    ChartAxis.AxisLineOffset
    ChartAxis.AxisLineOffsetProperty
    ChartAxis.AxisLineStyle
    ChartAxis.AxisLineStyleProperty
    ChartAxis.Clone()
    ChartAxis.CoefficientToActualValue(Double)
    ChartAxis.CoefficientToValue(Double)
    ChartAxis.ContentPath
    ChartAxis.ContentPathProperty
    ChartAxis.CrosshairLabelTemplate
    ChartAxis.CrosshairLabelTemplateProperty
    ChartAxis.CRoundDecimals
    ChartAxis.CustomLabels
    ChartAxis.DesiredIntervalsCount
    ChartAxis.DesiredIntervalsCountProperty
    ChartAxis.EdgeLabelsDrawingMode
    ChartAxis.EdgeLabelsDrawingModeProperty
    ChartAxis.EdgeLabelsVisibilityMode
    ChartAxis.EdgeLabelsVisibilityModeProperty
    ChartAxis.EnableAutoIntervalOnZooming
    ChartAxis.EnableAutoIntervalOnZoomingProperty
    ChartAxis.GetActualDesiredIntervalsCount(Size)
    ChartAxis.GetArrangeRect()
    ChartAxis.GetRenderedRect()
    ChartAxis.Header
    ChartAxis.HeaderPosition
    ChartAxis.HeaderPositionProperty
    ChartAxis.HeaderProperty
    ChartAxis.HeaderStyle
    ChartAxis.HeaderStyleProperty
    ChartAxis.HeaderTemplate
    ChartAxis.HeaderTemplateProperty
    ChartAxis.IsInversed
    ChartAxis.IsInversedProperty
    ChartAxis.IsLogarithmic
    ChartAxis.LabelCreated
    ChartAxis.LabelExtent
    ChartAxis.LabelExtentProperty
    ChartAxis.LabelFormat
    ChartAxis.LabelFormatProperty
    ChartAxis.LabelRotationAngle
    ChartAxis.LabelRotationAngleProperty
    ChartAxis.LabelsIntersectAction
    ChartAxis.LabelsIntersectActionProperty
    ChartAxis.LabelsPosition
    ChartAxis.LabelsPositionProperty
    ChartAxis.LabelsSource
    ChartAxis.LabelsSourceProperty
    ChartAxis.LabelStyle
    ChartAxis.LabelStyleProperty
    ChartAxis.LabelTemplate
    ChartAxis.LabelTemplateProperty
    ChartAxis.MajorGridLineStyle
    ChartAxis.MajorGridLineStyleProperty
    ChartAxis.MajorTickLineStyle
    ChartAxis.MajorTickLineStyleProperty
    ChartAxis.MaximumLabels
    ChartAxis.MaximumLabelsProperty
    ChartAxis.MaxPixelsCount
    ChartAxis.MeasureOverride(Size)
    ChartAxis.MinorGridLineStyle
    ChartAxis.MinorGridLineStyleProperty
    ChartAxis.MinorTickLineStyle
    ChartAxis.MinorTickLineStyleProperty
    ChartAxis.OnAxisVisibleRangeChanged(VisibleRangeChangedEventArgs)
    ChartAxis.OnPropertyChanged()
    ChartAxis.OnRegisteredSeriesCollectionChanged(Object, NotifyCollectionChangedEventArgs)
    ChartAxis.OpposedPosition
    ChartAxis.OpposedPositionProperty
    ChartAxis.Origin
    ChartAxis.OriginLineStyle
    ChartAxis.OriginLineStyleProperty
    ChartAxis.OriginProperty
    ChartAxis.PlotOffset
    ChartAxis.PlotOffsetEnd
    ChartAxis.PlotOffsetEndProperty
    ChartAxis.PlotOffsetProperty
    ChartAxis.PlotOffsetStart
    ChartAxis.PlotOffsetStartProperty
    ChartAxis.PositionPath
    ChartAxis.PositionPathProperty
    ChartAxis.PostfixLabelTemplate
    ChartAxis.PostfixLabelTemplateProperty
    ChartAxis.PrefixLabelTemplate
    ChartAxis.PrefixLabelTemplateProperty
    ChartAxis.RangeStyles
    ChartAxis.RangeStylesProperty
    ChartAxis.ShowAxisNextToOrigin
    ChartAxis.ShowAxisNextToOriginProperty
    ChartAxis.ShowGridLines
    ChartAxis.ShowGridLinesProperty
    ChartAxis.ShowOrigin
    ChartAxis.ShowOriginProperty
    ChartAxis.ShowTrackBallInfo
    ChartAxis.ShowTrackBallInfoProperty
    ChartAxis.ThumbLabelTemplate
    ChartAxis.ThumbLabelTemplateProperty
    ChartAxis.ThumbLabelVisibility
    ChartAxis.ThumbLabelVisibilityProperty
    ChartAxis.TickLineSize
    ChartAxis.TickLineSizeProperty
    ChartAxis.TickLinesPosition
    ChartAxis.TickLinesPositionProperty
    ChartAxis.TrackBallLabelTemplate
    ChartAxis.TrackBallLabelTemplateProperty
    ChartAxis.ValueToCoefficient(Double)
    ChartAxis.ValueToCoefficient(Double, Boolean)
    ChartAxis.VisibleLabels
    ChartAxis.VisibleRange
    ChartAxisBase2D.AutoScrollingDelta
    ChartAxisBase2D.AutoScrollingDeltaProperty
    ChartAxisBase2D.AutoScrollingMode
    ChartAxisBase2D.AutoScrollingModeProperty
    ChartAxisBase2D.DeferredScrolling
    ChartAxisBase2D.DeferredScrollingProperty
    ChartAxisBase2D.EnableScrollBar
    ChartAxisBase2D.EnableScrollBarProperty
    ChartAxisBase2D.EnableScrollBarResizing
    ChartAxisBase2D.EnableScrollBarResizingProperty
    ChartAxisBase2D.EnableTouchMode
    ChartAxisBase2D.EnableTouchModeProperty
    ChartAxisBase2D.IncludeStripLineRange
    ChartAxisBase2D.IncludeStripLineRangeProperty
    ChartAxisBase2D.LabelBorderBrush
    ChartAxisBase2D.LabelBorderBrushProperty
    ChartAxisBase2D.LabelBorderWidth
    ChartAxisBase2D.LabelBorderWidthProperty
    ChartAxisBase2D.LabelClicked
    ChartAxisBase2D.MultiLevelLabels
    ChartAxisBase2D.MultiLevelLabelsBorderType
    ChartAxisBase2D.MultiLevelLabelsBorderTypeProperty
    ChartAxisBase2D.MultiLevelLabelsProperty
    ChartAxisBase2D.OnApplyTemplate()
    ChartAxisBase2D.OnAxisBoundsChanged(ChartAxisBoundsEventArgs)
    ChartAxisBase2D.PolarAngle
    ChartAxisBase2D.PolarAngleProperty
    ChartAxisBase2D.PolarCoefficientToValue(Double)
    ChartAxisBase2D.ShowLabelBorder
    ChartAxisBase2D.ShowLabelBorderProperty
    ChartAxisBase2D.StripLines
    ChartAxisBase2D.StripLinesProperty
    ChartAxisBase2D.ValueToPolarCoefficient(Double)
    ChartAxisBase2D.ZoomFactor
    ChartAxisBase2D.ZoomFactorProperty
    ChartAxisBase2D.ZoomPosition
    ChartAxisBase2D.ZoomPositionProperty
    RangeAxisBase.AddSmallTicksPoint(Double)
    RangeAxisBase.AddSmallTicksPoint(Double, Double)
    RangeAxisBase.IncludeAnnotationRange
    RangeAxisBase.IncludeAnnotationRangeProperty
    RangeAxisBase.IRangeAxis.Range
    RangeAxisBase.Range
    RangeAxisBase.SmallTickLineSize
    RangeAxisBase.SmallTickLineSizeProperty
    RangeAxisBase.SmallTickLinesPosition
    RangeAxisBase.SmallTickLinesPositionProperty
    RangeAxisBase.SmallTicksPerInterval
    RangeAxisBase.SmallTicksPerIntervalProperty
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.SfChart.UWP.dll
    Syntax
    public class DateTimeAxis : RangeAxisBase, ICloneable, IRangeAxis

    Constructors

    DateTimeAxis()

    Declaration
    public DateTimeAxis()

    Fields

    AutoScrollingDeltaTypeProperty

    Using a DependencyProperty as the backing store for AutoScrollingDeltaType. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty AutoScrollingDeltaTypeProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    CloseTimeProperty

    The DependencyProperty for CloseTime property.

    Declaration
    public static readonly DependencyProperty CloseTimeProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    EnableBusinessHoursProperty

    The DependencyProperty for EnableBusinessHours property.

    Declaration
    public static readonly DependencyProperty EnableBusinessHoursProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    IntervalProperty

    The DependencyProperty for Interval property.

    Declaration
    public static readonly DependencyProperty IntervalProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    IntervalTypeProperty

    The DependencyProperty for IntervalType property.

    Declaration
    public static readonly DependencyProperty IntervalTypeProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    MaximumProperty

    The DependencyProperty for Maximum property.

    Declaration
    public static readonly DependencyProperty MaximumProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    MinimumProperty

    The DependencyProperty for Minimum property.

    Declaration
    public static readonly DependencyProperty MinimumProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    OpenTimeProperty

    The DependencyProperty for OpenTime property.

    Declaration
    public static readonly DependencyProperty OpenTimeProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    RangePaddingProperty

    The DependencyProperty for RangePadding property.

    Declaration
    public static readonly DependencyProperty RangePaddingProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    WorkingDaysProperty

    The DependencyProperty for WorkingDays property.

    Declaration
    public static readonly DependencyProperty WorkingDaysProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    Properties

    AutoScrollingDeltaType

    Gets or sets the date time unit of the value specified in the AutoScrollingDelta property.

    Declaration
    public DateTimeIntervalType AutoScrollingDeltaType { get; set; }
    Property Value
    Type
    DateTimeIntervalType

    CloseTime

    Gets or sets the business closing time.

    Declaration
    public double CloseTime { get; set; }
    Property Value
    Type
    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
    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
    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.

    Declaration
    public object Maximum { get; set; }
    Property Value
    Type
    System.Object
    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.

    Declaration
    public object Minimum { get; set; }
    Property Value
    Type
    System.Object
    Remarks

    If we didn't set the minimum value, it will be calculate from the underlying collection.

    OpenTime

    Gets or sets the business open time.

    Declaration
    public double OpenTime { get; set; }
    Property Value
    Type
    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
    Type
    Day

    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
    Type
    DoubleRange
    Overrides
    ChartAxis.ApplyRangePadding(DoubleRange, Double)

    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
    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
    System.Double
    Overrides
    ChartAxis.CalculateActualInterval(DoubleRange, Size)

    CalculateActualRange()

    Calculates actual range

    Declaration
    protected override DoubleRange CalculateActualRange()
    Returns
    Type
    DoubleRange
    Overrides
    ChartAxis.CalculateActualRange()

    CalculateNiceInterval(DoubleRange, Size)

    Calculates nice interval.

    Declaration
    protected override double CalculateNiceInterval(DoubleRange actualRange, Size availableSize)
    Parameters
    Type Name Description
    DoubleRange actualRange
    Windows.Foundation.Size availableSize
    Returns
    Type Description
    System.Double

    Axis interval based on available size

    Overrides
    ChartAxis.CalculateNiceInterval(DoubleRange, Size)

    CalculateVisibleRange(Size)

    Calculates the visible range.

    Declaration
    protected override void CalculateVisibleRange(Size availableSize)
    Parameters
    Type Name Description
    Windows.Foundation.Size availableSize
    Overrides
    ChartAxisBase2D.CalculateVisibleRange(Size)

    CloneAxis(DependencyObject)

    Declaration
    protected override DependencyObject CloneAxis(DependencyObject obj)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyObject obj
    Returns
    Type
    Windows.UI.Xaml.DependencyObject
    Overrides
    RangeAxisBase.CloneAxis(DependencyObject)

    GenerateVisibleLabels()

    Method implementation for Create VisibleLabels for DateTime axis

    Declaration
    protected override void GenerateVisibleLabels()
    Overrides
    RangeAxisBase.GenerateVisibleLabels()

    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
    System.Object
    Overrides
    ChartAxis.GetLabelContent(Double)

    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

    ICloneable
    IRangeAxis

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved