NumericAxis
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
public NumericAxis()
numericAxis = NumericAxis()
Initializes a new instance of the NumericAxis class.
Properties
public double MajorDelta { get; set; }
value = numericAxis.MajorDelta
numericAxis.MajorDelta = value
Gets or sets the major delta.
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
public double MinorDelta { get; set; }
value = numericAxis.MinorDelta
numericAxis.MinorDelta = value
Gets or sets the minor delta.
public ScientificNotation ScientificNotation { get; set; }
value = numericAxis.ScientificNotation
numericAxis.ScientificNotation = value
Gets or sets used number format
Methods
protected override void CalculateDelta()
numericAxis.CalculateDelta()
Calcuates the delta's for use in this render pass
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
public override AxisParams GetAxisParams()
result = numericAxis.GetAxisParams()
Gets an AxisParams struct with info about the current axis setup
public override IComparable GetDataValue(double pixelCoordinate)
result = numericAxis.GetDataValue(pixelCoordinate)
Transforms a pixel coordinate into a data value for this axis.
- pixelCoordinate
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
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
protected override List<Type> GetSupportedTypes()
result = numericAxis.GetSupportedTypes()
Returns a list of types which current axis is designed to work with
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
public override bool IsOfValidType(IRange range)
result = numericAxis.IsOfValidType(range)
Checks whether is of valid type for this axis
- range
Fields
public static readonly DependencyProperty ScientificNotationProperty
value = NumericAxis.ScientificNotationProperty
Defines the ScientificNotation DependencyProperty