SChartPixelToPointMapping

@interface SChartPixelToPointMapping : NSObject

A tuple of pixel-point, series and datapoint, used for passing information about a closest-point and series back from a SChartPixelToPointMapper

  • The pixel point, in chart coordinates.

    This is the suggested point.

    For example, on line series this point will be the interpolated position where a trigger point intersects the line.

    On a multi-series column or bar this will be offset so the point is positioned above the correct column / to the side of the correct bar.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGPoint pixelPoint;

    Swift

    var pixelPoint: CGPoint { get set }
  • The series that dataPoint belongs to.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) SChartMappedSeries *_Nonnull series;

    Swift

    var series: SChartMappedSeries { get set }
  • The datapoint belonging to series.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) id<SChartData> _Nonnull dataPoint;