TKChartSelectionInfo Class Reference
Inherits from | NSObject |
Conforms to | NSCopying |
Declared in | TKChartSelectionInfo.h |
Tasks
-
+ hitTestInfoWithSeries:dataPointIndex:
-
+ hitTestInfoWithSeries:dataPointIndex:distance:
-
– initWithSeries:dataPointIndex:
-
– initWithSeries:dataPointIndex:distance:
-
series
property -
dataPointIndex
property -
dataPoint
property -
distance
property -
location
property
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
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