TimeSpanAxisBase
A common base class for DateTimeAxis and TimeSpanAxis
Inherits: AxisBase
Implements: IAxis, IAxisParams, IHitTestable, ISuspendable, IInvalidatableElement, IDrawable
Properties
public TimeSpan MajorDelta { get; set; }
value = timeSpanAxisBase.MajorDelta
timeSpanAxisBase.MajorDelta = value
Gets or sets the major delta.
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
public TimeSpan MinorDelta { get; set; }
value = timeSpanAxisBase.MinorDelta
timeSpanAxisBase.MinorDelta = value
Gets or sets the minor delta.
StockSharp#Xaml#Charting#Visuals#Axes#IAxisParams#MajorDelta
Gets or sets the major delta.
StockSharp#Xaml#Charting#Visuals#Axes#IAxisParams#MinorDelta
Gets or sets the minor delta.
Methods
protected override IRange CalculateDataRange()
result = timeSpanAxisBase.CalculateDataRange()
Calculates data range of current axis
protected override void CalculateDelta()
timeSpanAxisBase.CalculateDelta()
Calcuates the delta's for use in this render pass
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
public override IComparable GetDataValue(double pixelCoordinate)
result = timeSpanAxisBase.GetDataValue(pixelCoordinate)
Transforms a pixel coordinate into a data value for this axis.
- pixelCoordinate
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
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