DateTimeAxis

StockSharp.Xaml.Charting.Visuals.Axes

Provides a Linear, Value DateTime Axis, capable of rendering DateTime ticks on the X-Axis of a UltrachartSurface.

Inherits: TimeSpanAxisBase

Constructors

DateTimeAxis()

Initializes a new instance of the DateTimeAxis class.

Properties

SubDayTextFormatting : string

Gets or sets the Text Formatting String used for Axis Tick Labels when the range of the axis is sub-day

Methods

AssertDataType(Type)

Asserts the type passed in is supported by the current axis implementation

dataType
CalculateYRange(RenderPassInfo) : IRange

Calculates the zoom-to-fit Y-Range of the axis, accounting for the data that is in the viewport and applying any GrowBy margin

renderPassInfo
Struct containing data for the current render pass

Returns: The VisibleRange of the axis

CoerceZeroRange(IRange) : IRange

Coerce if current range is zero range

maximumRange
Current maximum range
ConvertTickToDataValue(IComparable) : IComparable

When overridden in a derived class, converts a tick value to a data value. For instance, this may be overridden in the CategoryDateTimeAxis to convert between indices and DateTimes

value
GetDefaultNonZeroRange() : IRange

Returns an default non zero IRange, called internally by Ultrachart to reset the VisibleRange of an axis to an undefined state

GetDeltaCalculator() : IDeltaCalculator

Returns an instance of an IDeltaCalculator which is used to compute the data-values of MajorDelta, MinorDelta. Overridden by derived types to allow calculations specific to that axis type.

Returns: An IDeltaCalculator instance

GetMaximumRange() : IRange

Gets the Maximum Range of the axis, which is equal to the DataRange including any GrowBy factor applied

GetSupportedTypes() : List<Type>

Returns a list of types which current axis is designed to work with

GetUndefinedRange() : IRange

Returns an undefined IRange, called internally by Ultrachart to reset the VisibleRange of an axis to an undefined state

IsOfValidType(IRange) : bool

Checks whether is not Null and is of valid type for this axis

range
ToVisibleRange(IComparable, IComparable) : IRange

When overriden in a derived class, converts a Min Max IComparable value into an IRange of the correct type for this axis

min
The min value
max
The max value

Returns: The IRange instance

Fields

SubDayTextFormattingProperty : DependencyProperty

Defines the SubDayTextFormatting DependencyProperty