TimeSpanAxisBase

StockSharp.Xaml.Charting.Visuals.Axes

A common base class for DateTimeAxis and TimeSpanAxis

Inherits: AxisBase

Implements: IAxis, IAxisParams, IHitTestable, ISuspendable, IInvalidatableElement, IDrawable

Properties

MajorDelta
public TimeSpan MajorDelta { get; set; }
value = timeSpanAxisBase.MajorDelta
timeSpanAxisBase.MajorDelta = value

Gets or sets the major delta.

MinimalZoomConstrain
public TimeSpan? MinimalZoomConstrain { get; set; }
value = timeSpanAxisBase.MinimalZoomConstrain
timeSpanAxisBase.MinimalZoomConstrain = value

Gets or sets the MinimalZoomConstrain of the Axis. This is used to set minimum distance between Min and Max of the VisibleRange

MinorDelta
public TimeSpan MinorDelta { get; set; }
value = timeSpanAxisBase.MinorDelta
timeSpanAxisBase.MinorDelta = value

Gets or sets the minor delta.

Methods

CalculateDataRange
protected override IRange CalculateDataRange()
result = timeSpanAxisBase.CalculateDataRange()

Calculates data range of current axis

CalculateDelta
protected override void CalculateDelta()
timeSpanAxisBase.CalculateDelta()

Calcuates the delta's for use in this render pass

CalculateYRange
public override IRange CalculateYRange(RenderPassInfo renderPassInfo)
result = timeSpanAxisBase.CalculateYRange(renderPassInfo)

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

Clone
public override IAxis Clone()
result = timeSpanAxisBase.Clone()

Clones this instance.

GetDataValue
public override IComparable GetDataValue(double pixelCoordinate)
result = timeSpanAxisBase.GetDataValue(pixelCoordinate)

Transforms a pixel coordinate into a data value for this axis.

pixelCoordinate
GetMaximumRange
public override IRange GetMaximumRange()
result = timeSpanAxisBase.GetMaximumRange()

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

ToVisibleRange
protected abstract IRange ToVisibleRange(IComparable min, IComparable max)
result = timeSpanAxisBase.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