Inherits from NSObject
Conforms to NSCopying
Declared in TKChartSelectionInfo.h

Overview

Represents a class that contains selection and hit test information.

Properties

dataPoint

Returns the underlying data point.

@property (nonatomic, strong, readonly) id<TKChartData> __nullable dataPoint

Declared In

TKChartSelectionInfo.h

dataPointIndex

Returns the index of the underlying data point.

@property (nonatomic, assign, readonly) NSInteger dataPointIndex

Declared In

TKChartSelectionInfo.h

distance

Returns the distance between the touch origin and data point origin.

@property (nonatomic, assign, readonly) CGFloat distance

Declared In

TKChartSelectionInfo.h

location

Returns the location in view coordinates

@property (nonatomic, readonly) CGPoint location

Declared In

TKChartSelectionInfo.h

series

Returns the underlying series.

@property (nonatomic, weak, readonly) TKChartSeries *series

Declared In

TKChartSelectionInfo.h

Class Methods

hitTestInfoWithSeries:dataPointIndex:

Creates a TKChartSelectionInfo instance.

+ (instancetype __nonnull)hitTestInfoWithSeries:(TKChartSeries *__nullable)series dataPointIndex:(NSInteger)dataPointIndex

Parameters

series

The series for this hit test.

dataPointIndex

The index of the point for this hit test.

Declared In

TKChartSelectionInfo.h

hitTestInfoWithSeries:dataPointIndex:distance:

Creates a TKChartSelectionInfo instance.

+ (instancetype __nonnull)hitTestInfoWithSeries:(TKChartSeries *__nullable)series dataPointIndex:(NSInteger)dataPointIndex distance:(CGFloat)distance

Parameters

series

The series for this hit test.

dataPointIndex

The index of the point for this hit test.

distance

The distance.

Declared In

TKChartSelectionInfo.h

Instance Methods

initWithSeries:dataPointIndex:

Initializes a TKChartSelectionInfo instance.

- (instancetype __nonnull)initWithSeries:(TKChartSeries *__nullable)series dataPointIndex:(NSInteger)dataPointIndex

Parameters

series

The series for this hit test.

dataPointIndex

The index of the point for this hit test.

Declared In

TKChartSelectionInfo.h

initWithSeries:dataPointIndex:distance:

Initializes a TKChartSelectionInfo.

- (instancetype __nonnull)initWithSeries:(TKChartSeries *__nullable)series dataPointIndex:(NSInteger)dataPointIndex distance:(CGFloat)distance

Parameters

series

The series for this hit test.

dataPointIndex

The index of the point for this hit test.

distance

The distance between the touch origin and data point origin.

Declared In

TKChartSelectionInfo.h