NumericLabelProvider
StockSharp.Xaml.Charting.Visuals.Axes
The NumericLabelFormatter is a pass-through which uses the TextFormatting and CursorTextFormatting properties to format axis and cursor label texts
Inherits: LabelProviderBase
Methods
CreateDataContext
public override ITickLabelViewModel CreateDataContext(IComparable dataValue)
result = numericLabelProvider.CreateDataContext(dataValue)
Creates a ITickLabelViewModel instance, based on the data-value passed in. Invokes IComparable) to format the specified data-value passed in.
- dataValue
- The data-value to format
FormatCursorLabel
public override string FormatCursorLabel(IComparable dataValue, bool hitTest)
result = numericLabelProvider.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 = numericLabelProvider.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
UpdateDataContext
public override ITickLabelViewModel UpdateDataContext(ITickLabelViewModel labelDataContext, IComparable dataValue)
result = numericLabelProvider.UpdateDataContext(labelDataContext, dataValue)
Updates existing ITickLabelViewModel, based on the data-value passed in. Invokes IComparable) to format the specified data-value passed in.
- labelDataContext
- The instance to update
- dataValue
- The data-value to format