DateTimeAxis
Represents a chart axis that positions data points along a continuous time scale proportional to their actual date-time values, preserving gaps between irregularly spaced data instead of distributing points evenly as a CategoricalAxis would. Use this axis type when the horizontal distance between points should reflect the elapsed time between them, such as for time-series or financial charts.
Definition
Namespace:Telerik.Maui.Controls.Charts
Assembly:Telerik.Maui.Controls.dll
Syntax:
public sealed class DateTimeAxis : ChartAxis
Inheritance: objectChartAxisDateTimeAxis
Inherited Members
Constructors
public DateTimeAxis()
Fields
DesiredTickCountProperty
BindableProperty
Identifies the DesiredTickCount bindable property.
public static readonly BindableProperty DesiredTickCountProperty
LabelFormatProperty
BindableProperty
Identifies the LabelFormat bindable property.
public static readonly BindableProperty LabelFormatProperty
MajorStepProperty
BindableProperty
Identifies the MajorStep bindable property.
public static readonly BindableProperty MajorStepProperty
MajorStepUnitProperty
BindableProperty
Identifies the MajorStepUnit bindable property.
public static readonly BindableProperty MajorStepUnitProperty
MaximumProperty
BindableProperty
Identifies the Maximum bindable property.
public static readonly BindableProperty MaximumProperty
MinimumProperty
BindableProperty
Identifies the Minimum bindable property.
public static readonly BindableProperty MinimumProperty
WeekStartDayProperty
BindableProperty
Identifies the WeekStartDay bindable property.
public static readonly BindableProperty WeekStartDayProperty
Properties
Gets or sets the approximate number of major ticks the chart engine aims to produce when automatically
computing MajorStep (that is, while MajorStepUnit is
None). The actual tick count may differ slightly so that ticks fall on
round calendar boundaries. The value must be greater than 0; the default is 7.
This property has no effect once an explicit MajorStepUnit is set.
public int DesiredTickCount { get; set; }
Gets or sets the .NET custom or standard date/time format string used to render axis tick labels. Set to null (the default) to let the chart engine choose a format appropriate for the resolved MajorStepUnit.
public string? LabelFormat { get; set; }
Gets or sets the fixed distance between major ticks, expressed as a number of MajorStepUnit
intervals (for example a value of 2 combined with Month places a tick
every two months). The value must be greater than or equal to 0. Leave the default of 0,
together with MajorStepUnit at its default of None, to let the
chart engine automatically compute a step that yields approximately DesiredTickCount ticks.
public double MajorStep { get; set; }
Gets or sets the calendar unit that MajorStep is measured in (for example Day or Month). Set to None (the default) to let the chart engine choose both the unit and the step automatically based on the axis range and DesiredTickCount.
public ChartTimeInterval MajorStepUnit { get; set; }
Gets or sets the latest date-time value represented on the axis. Data points later than this value are clipped from the visible plot range. Set to null (the default) to let the chart engine derive the maximum automatically from the largest bound value across all series that use this axis.
public DateTime? Maximum { get; set; }
Gets or sets the earliest date-time value represented on the axis. Data points earlier than this value are clipped from the visible plot range. Set to null (the default) to let the chart engine derive the minimum automatically from the smallest bound value across all series that use this axis.
public DateTime? Minimum { get; set; }
Gets or sets the day considered the first day of the week when ticks are aligned to week boundaries (that is, when MajorStepUnit is Week). The default value is Monday.
public DayOfWeek WeekStartDay { get; set; }