TickProvider
Abstract base implementation of ITickProvider
Implements: ITickProvider<T>, ITickProvider
Properties
public IAxis ParentAxis { get; protected set; }
value = tickProvider.ParentAxis
tickProvider.ParentAxis = value
Called when the tick provider is initialized as it is attached to the parent axis, with the parent axis instance
Methods
protected virtual double[] ConvertTicks(T[] ticks)
result = tickProvider.ConvertTicks(ticks)
Converts ticks in generic format to Double, e.g. cast to double for numeric types, or cast DateTime.Ticks to double for DateTime types
- ticks
public abstract T[] GetMajorTicks(IAxisParams axis)
result = tickProvider.GetMajorTicks(axis)
Returns Generic-typed representation of major ticks array
- axis
- The AxisParams for the axis
Returns: The array of ticks to display (data values converted to T)
public abstract T[] GetMinorTicks(IAxisParams axis)
result = tickProvider.GetMinorTicks(axis)
Returns Generic-typed representation of minor ticks array
- axis
- The AxisParams for the axis
Returns: The array of ticks to display (data values converted to T)
public virtual void Init(IAxis axis)
tickProvider.Init(axis)
Called when the tick provider is initialized as it is attached to the parent axis, with the parent axis instance
- axis
- The parent IAxis instance
StockSharp#Xaml#Charting#Visuals#Axes#ITickProvider#GetMajorTicks(IAxisParams)
Returns double representation of major ticks array
- axis
- The AxisParams for the axis
Returns: The array of ticks to display (data values converted to double)
StockSharp#Xaml#Charting#Visuals#Axes#ITickProvider#GetMinorTicks(IAxisParams)
Returns double representation of minor ticks array
- axis
- The AxisParams for the axis
Returns: The array of ticks to display (data values converted to double)