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

SCIChartModifierBase

@interface SCIChartModifierBase : SCIChartModifierCore <ISCIChartModifier>

Defines the base class to a Chart Modifier, which can be used to extend the interactivity or rendering of the SCIChartSurface.

  • Transforms point with coordinates relative to parent surface and transforms it relative to specified ISCIHitTestable instance.

    Declaration

    Objective-C

    - (CGPoint)getPoint:(CGPoint)point
             relativeTo:(nonnull id<ISCIHitTestable>)relativeTo;

    Swift

    func getPoint(_ point: CGPoint, relativeTo: any ISCIHitTestable) -> CGPoint

    Parameters

    point

    The point to translate.

    relativeTo

    The target ISCIHitTestable instance.

    Return Value

    The translated CGPoint.

  • Includes or excludes X axis

    Declaration

    Objective-C

    - (void)includeXAxis:(id<ISCIAxis> _Nonnull)axis isIncluded:(BOOL)isIncluded;

    Swift

    func includeXAxis(_ axis: any ISCIAxis, isIncluded: Bool)

    Parameters

    axis

    The axis to include or exclude

    isIncluded

    True to include, false to exclude

  • Includes or excludes Y axis

    Declaration

    Objective-C

    - (void)includeYAxis:(id<ISCIAxis> _Nonnull)axis isIncluded:(BOOL)isIncluded;

    Swift

    func includeYAxis(_ axis: any ISCIAxis, isIncluded: Bool)

    Parameters

    axis

    The axis to include or exclude

    isIncluded

    True to include, false to exclude

  • Includes all axis

    Declaration

    Objective-C

    - (void)includeAll;

    Swift

    func includeAll()
  • Exclude all axis

    Declaration

    Objective-C

    - (void)excludeAll;

    Swift

    func excludeAll()