TKChartPointLabelRender Class Reference
Inherits from | NSObject |
Declared in | TKChartPointLabelRender.h |
Instance Methods
initWithRender:
- (instancetype __nonnull)initWithRender:(TKChartSeriesRender *__nonnull)render
Parameters
- render
The series render.
Declared In
TKChartPointLabelRender.h
isPoint:insideRect:
Returns BOOL value showing if point is inside the bounds of given rectangle.
- (BOOL)isPoint:(CGPoint)point insideRect:(CGRect)rect
Parameters
- point
The point which will be tested.
- rect
The given rectangle.
Declared In
TKChartPointLabelRender.h
labelForDataPoint:property:inSeries:atIndex:
Returns TKChartPointLabel instance.
- (TKChartPointLabel *__nullable)labelForDataPoint:(id<TKChartData> __nonnull)dataPoint property:(NSString *__nullable)propertyName inSeries:(TKChartSeries *__nonnull)series atIndex:(NSUInteger)dataIndex
Parameters
- dataPoint
The data point for which a label will be returned.
- propertyName
The property name of the data point for which a point label will be created.
- series
The data point’s series.
- dataIndex
Data point’s index in the series.
Declared In
TKChartPointLabelRender.h
locationForDataPoint:forSeries:inRect:
Returns the coordinates of idTKChartData in specified rect.
- (CGPoint)locationForDataPoint:(id<TKChartData> __nonnull)dataPoint forSeries:(TKChartSeries *__nonnull)series inRect:(CGRect)rect
Parameters
- dataPoint
idTKChartData instance which coordeinates will be returned.
- series
The idTKChartData object series.
- rect
The rect for which coordinates will be returned.
Declared In
TKChartPointLabelRender.h
renderPointLabelsForSeries:inRect:context:
Renders point labels for a series.
- (void)renderPointLabelsForSeries:(TKChartSeries *__nonnull)series inRect:(CGRect)bounds context:(CGContextRef __nonnull)ctx
Parameters
- series
The series for which point labels will be rendered.
- bounds
The rect that point labels should be rendered into.
- ctx
CGContext instance.
Declared In
TKChartPointLabelRender.h