TKChartPointAnnotation Class Reference
Inherits from | TKChartAnnotation : NSObject |
Declared in | TKChartPointAnnotation.h |
Tasks
-
– initWithX:Y:forSeries:
-
– initWithPoint:forSeries:
-
– initWithX:Y:forXAxis:forYAxis:
-
– initWithPoint:forXAxis:forYAxis:
-
– locationInRect:forChart:
-
series
property -
xAxis
property -
yAxis
property -
position
property -
offset
property
Properties
offset
An offset which is applied to annotation coordinates when calling the locationInRect: method.
@property (nonatomic, assign) UIOffset offset
Declared In
TKChartPointAnnotation.h
position
The annotation position.
@property (nonatomic, strong) id<TKChartData> __nonnull position
Declared In
TKChartPointAnnotation.h
series
The TKChartSeries associated with the annotation.
@property (nonatomic, weak, nullable) TKChartSeries *series
Declared In
TKChartPointAnnotation.h
xAxis
The X TKChartSeries associated with the annotation.
@property (nonatomic, weak, nullable) TKChartAxis *xAxis
Declared In
TKChartPointAnnotation.h
yAxis
The Y TKChartAxis associated with the annotation.
@property (nonatomic, weak, nullable) TKChartAxis *yAxis
Declared In
TKChartPointAnnotation.h
Instance Methods
initWithPoint:forSeries:
Initializes the annotation by using a data point and a series.
- (instancetype __nonnull)initWithPoint:(id<TKChartData> __nonnull)point forSeries:(TKChartSeries *__nonnull)series
Parameters
- point
The location of the annotation.
- series
The TKChartSeries instance to use with these coordinates.
Declared In
TKChartPointAnnotation.h
initWithPoint:forXAxis:forYAxis:
Initializes the annotation by using a data point and two axes.
- (instancetype __nonnull)initWithPoint:(id<TKChartData> __nonnull)point forXAxis:(TKChartAxis *__nonnull)xAxis forYAxis:(TKChartAxis *__nonnull)yAxis
Parameters
- point
The location of the annotation.
- xAxis
The TKChartAxis instance to use with the X coordinate.
- yAxis
The TKChartAxis instance to use with the Y coordinate.
Declared In
TKChartPointAnnotation.h
initWithX:Y:forSeries:
Initializes the annotation by using coordinates.
- (instancetype __nonnull)initWithX:(id __nonnull)xValue Y:(id __nonnull)yValue forSeries:(TKChartSeries *__nonnull)series
Parameters
- xValue
The X coordinate of the annotation.
- yValue
The Y coordinate of the annotation.
- series
The TKChartSeries instance to use with these coordinates.
Declared In
TKChartPointAnnotation.h
initWithX:Y:forXAxis:forYAxis:
Initializes the annotation by using coordinates and two axes.
- (instancetype __nonnull)initWithX:(id __nonnull)xValue Y:(id __nonnull)yValue forXAxis:(TKChartAxis *__nonnull)xAxis forYAxis:(TKChartAxis *__nonnull)yAxis
Parameters
- xValue
The X coordinate of the annotation.
- yValue
The Y coordinate of the annotation.
- xAxis
The TKChartAxis instance to use with the X coordinate.
- yAxis
The TKChartAxis instance to use with the Y coordinate.
Declared In
TKChartPointAnnotation.h
locationInRect:forChart:
Returns the plot coordinates of this annotation whithin the specified bounds.
- (CGPoint)locationInRect:(CGRect)bounds forChart:(TKChart *__nullable)chart
Parameters
- bounds
the bounds which define the final coordinates.
- chart
the chart where this annotation belongs.
Declared In
TKChartPointAnnotation.h