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

SCIPieChartHitProviderBase

@interface SCIPieChartHitProviderBase<T : id <ISCIPieDonutRenderPassData>>
    : NSObject <ISCIPieChartHitProvider>

Defines a base class for ISCIPieChartHitProvider implementations.

Warning

Designed to be an abstract class, hence should be used for inheritance only. No direct initializations.
  • Creates a new instance of SCIPieChartHitProviderBase class.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRenderPassDataType:
        (nonnull Class)renderPassDataType;

    Swift

    init(renderPassDataType: AnyClass)

    Parameters

    renderPassDataType

    The type of associated render pass data.

  • Calculates polar radius.

    Declaration

    Objective-C

    - (float)getPolarRadiusWithX:(float)x y:(float)y;

    Swift

    func getPolarRadiusWith(x: Float, y: Float) -> Float

    Parameters

    x

    The x coordinates of point.

    y

    The y coordinates of point.

  • Calculates polar angle in degrees clockwise.

    Declaration

    Objective-C

    - (float)getPolarAngleInDegreesClockwiseWithX:(float)x y:(float)y;

    Swift

    func getPolarAngleInDegreesClockwiseWith(x: Float, y: Float) -> Float

    Parameters

    x

    The x coordinates of point.

    y

    The y coordinates of point.