TimeSpanAxis

StockSharp.Xaml.Charting.Visuals.Axes

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

Inherits: TimeSpanAxisBase

Constructors

TimeSpanAxis
public TimeSpanAxis()
timeSpanAxis = TimeSpanAxis()

Initializes a new instance of the TimeSpanAxis class.

Methods

CoerceZeroRange
protected override IRange CoerceZeroRange(IRange maximumRange)
result = timeSpanAxis.CoerceZeroRange(maximumRange)

Coerce if current range is zero range

maximumRange
Current maximum range
ConvertTickToDataValue
protected override IComparable ConvertTickToDataValue(IComparable value)
result = timeSpanAxis.ConvertTickToDataValue(value)

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
public override IRange GetDefaultNonZeroRange()
result = timeSpanAxis.GetDefaultNonZeroRange()

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

GetDeltaCalculator
protected override IDeltaCalculator GetDeltaCalculator()
result = timeSpanAxis.GetDeltaCalculator()

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

GetSupportedTypes
protected override List<Type> GetSupportedTypes()
result = timeSpanAxis.GetSupportedTypes()

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

GetUndefinedRange
public override IRange GetUndefinedRange()
result = timeSpanAxis.GetUndefinedRange()

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

IsOfValidType
public override bool IsOfValidType(IRange range)
result = timeSpanAxis.IsOfValidType(range)

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

range
ToVisibleRange
protected override IRange ToVisibleRange(IComparable min, IComparable max)
result = timeSpanAxis.ToVisibleRange(min, max)

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