iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

ISCILogarithmicCoordinateCalculator

@protocol ISCILogarithmicCoordinateCalculator <ISCICoordinateCalculator>

Provides the protocol for logarithmic coordinate calculator. Using pre-computed constants, types which implement this protocol can convert from pixel coordinate to data value and back.

  • Applies a logarithmic transformation to the provided data value, returning the exponent of it.

    Declaration

    Objective-C

    - (double)toExponent:(double)dataValue;

    Swift

    func toExponent(_ dataValue: Double) -> Double

    Parameters

    dataValue

    Value to which logarithmic transformation will be applied.

    Return Value

    The logarithmic transformation result.

  • Applies the inverse transformation to the provided exponent, returning the corresponding data value.

    Declaration

    Objective-C

    - (double)fromExponent:(double)exponent;

    Swift

    func fromExponent(_ exponent: Double) -> Double

    Parameters

    exponent

    Exponent which will to which the inverse logarithmic transformation will be applied.

    Return Value

    The inverse logarithmic transformation result.

  • Gets the base of the current logarithmic transformation.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double logarithmicBase;

    Swift

    var logarithmicBase: Double { get }