NumericAxis

StockSharp.Xaml.Charting.Visuals.Axes

Provides a Linear, Value Numeric Axis, capable of rendering double, int, short, byte, long ticks on the X or Y-Axis of a UltrachartSurface.

Inherits: AxisBase

Constructors

NumericAxis
public NumericAxis()
numericAxis = NumericAxis()

Initializes a new instance of the NumericAxis class.

Properties

MajorDelta
public double MajorDelta { get; set; }
value = numericAxis.MajorDelta
numericAxis.MajorDelta = value

Gets or sets the major delta.

MinimalZoomConstrain
public double? MinimalZoomConstrain { get; set; }
value = numericAxis.MinimalZoomConstrain
numericAxis.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 double MinorDelta { get; set; }
value = numericAxis.MinorDelta
numericAxis.MinorDelta = value

Gets or sets the minor delta.

ScientificNotation
public ScientificNotation ScientificNotation { get; set; }
value = numericAxis.ScientificNotation
numericAxis.ScientificNotation = value

Gets or sets used number format

Methods

CalculateDelta
protected override void CalculateDelta()
numericAxis.CalculateDelta()

Calcuates the delta's for use in this render pass

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

Gets the aligned VisibleRange of the axis, with optional ZoomToFit flag. If ZoomToFit is true, it will return the DataRange plus any GrowBy applied to the axis

renderPassInfo
Struct containing data for the current render pass

Returns: The VisibleRange of the axis

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

Clones this instance.

GetAxisParams
public override AxisParams GetAxisParams()
result = numericAxis.GetAxisParams()

Gets an AxisParams struct with info about the current axis setup

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

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

pixelCoordinate
GetDefaultNonZeroRange
public override IRange GetDefaultNonZeroRange()
result = numericAxis.GetDefaultNonZeroRange()

Returns an default non zero IRange, called internally by Ultrachart to reset the VisibleRange of an axis to an undefined state

GetDeltaCalculator
protected override IDeltaCalculator GetDeltaCalculator()
result = numericAxis.GetDeltaCalculator()

Returns an instance of an IDeltaCalculator which is used to compute the data-values of Axis Gridlines, Ticks and Labels. When overridden in a derived class (e.g. LogarithmicNumericAxis, the implementation of GetTickCalculator() changes to allow calculations specific to that axis type

Returns: An IDeltaCalculator instance

GetSupportedTypes
protected override List<Type> GetSupportedTypes()
result = numericAxis.GetSupportedTypes()

Returns a list of types which current axis is designed to work with

GetUndefinedRange
public override IRange GetUndefinedRange()
result = numericAxis.GetUndefinedRange()

Returns an undefined IRange, called internally by Ultrachart to reset the VisibleRange of an axis to an undefined state

IsOfValidType
public override bool IsOfValidType(IRange range)
result = numericAxis.IsOfValidType(range)

Checks whether is of valid type for this axis

range

Fields

ScientificNotationProperty
public static readonly DependencyProperty ScientificNotationProperty
value = NumericAxis.ScientificNotationProperty

Defines the ScientificNotation DependencyProperty