TradeChartAxisLabelProvider

StockSharp.Xaml.Charting.Visuals.Axes

A LabelFormatter instance to use on stock charts. Designed to be used with the CategoryDateTimeAxis and applied by default on the UltraStockChart control

Inherits: LabelProviderBase

Methods

FormatCursorLabel
public override string FormatCursorLabel(IComparable dataValue, bool hitTest)
result = tradeChartAxisLabelProvider.FormatCursorLabel(dataValue, hitTest)

Formats a label for the cursor, from the specified data-value passed in

dataValue
The data-value to format
hitTest
Cursor hit test.

Returns: The formatted cursor label string

FormatLabel
public override string FormatLabel(IComparable dataValue)
result = tradeChartAxisLabelProvider.FormatLabel(dataValue)

Formats a label for the axis from the specified data-value passed in

dataValue
The data-value to format

Returns: The formatted label string

Init
public override void Init(IAxis parentAxis)
tradeChartAxisLabelProvider.Init(parentAxis)

Called when the label formatted is initialized, with the parent axis instance

parentAxis
The parent IAxis instance
OnBeginAxisDraw
public override void OnBeginAxisDraw()
tradeChartAxisLabelProvider.OnBeginAxisDraw()

Called at the start of an axis render pass, before any labels are formatted for the current draw operation