TKChartSeriesRender Class Reference
Inherits from | TKChartRender : CALayer |
Declared in | TKChartSeriesRender.h |
Tasks
-
series
property -
seriesRenderStates
property -
+ locationOfValue:forAxis:inRect:
-
– initWithChart:forSeries:
-
– addSeries:
-
– isCompatibleWithSeries:
-
– locationOfXNumericValue:inSeries:
-
– locationOfYNumericValue:inSeries:
-
– locationOfPoint:inSeries:
-
– pointFromData:pointIndex:inSeries:
-
– createVisualPoint:pointIndex:inSeries:
-
– hitTestForPoint:
-
– selectionWillChangeForSeries:andPoint:
Properties
series
The series associated with this render.
@property (nonatomic, strong, readonly) NSArray *series
Declared In
TKChartSeriesRender.h
seriesRenderStates
Returns the render states for all associated series
@property (nonatomic, strong, readonly) TKMutableArray *seriesRenderStates
Declared In
TKChartSeriesRender.h
Class Methods
locationOfValue:forAxis:inRect:
Returns The location of numeric value representation
+ (CGFloat)locationOfValue:(double)numericValue forAxis:(TKChartAxis *__nonnull)axis inRect:(CGRect)bounds
Parameters
- numericValue
The numeric value
- axis
The axis
- bounds
The bounds
Return Value
The location of numeric value representation
Declared In
TKChartSeriesRender.h
Instance Methods
addSeries:
Adds a series to render.
- (BOOL)addSeries:(TKChartSeries *__nonnull)series
Parameters
- series
The series that should be added.
Declared In
TKChartSeriesRender.h
createVisualPoint:pointIndex:inSeries:
Creates a visual point based on the provided information.
- (TKChartVisualPoint *__nonnull)createVisualPoint:(id<TKChartData> __nonnull)data pointIndex:(NSInteger)index inSeries:(TKChartSeries *__nonnull)series
Parameters
- data
The data point that should be converted.
- index
The data point index.
- series
The series which contains this point.
Return Value
The instance of the newly created TKChartVisualPoint.
Declared In
TKChartSeriesRender.h
hitTestForPoint:
Does a hit point test.
- (TKChartSelectionInfo *__nonnull)hitTestForPoint:(CGPoint)point
Parameters
- point
The point to test with.
Return Value
A TKChartSelectionInfo object containing information about the hit point found. Returns nil when no hit test found.
Declared In
TKChartSeriesRender.h
initWithChart:forSeries:
Initializes the TKChartSeriesRender object.
- (instancetype __nonnull)initWithChart:(TKChart *__nonnull)chart forSeries:(NSArray *__nonnull)series
Declared In
TKChartSeriesRender.h
isCompatibleWithSeries:
Determines whether a series is compatible with TKChartSeriesRender.
- (BOOL)isCompatibleWithSeries:(TKChartSeries *__nonnull)series
Parameters
- series
The series to test with.
Declared In
TKChartSeriesRender.h
locationOfPoint:inSeries:
Returns the location of a data point
- (CGPoint)locationOfPoint:(id<TKChartData> __nonnull)data inSeries:(TKChartSeries *__nonnull)series
Parameters
- data
The data point to locate
- series
The series to which the specified data point is associated
Declared In
TKChartSeriesRender.h
locationOfXNumericValue:inSeries:
Returns an x-coordinate of the x-numeric value for specific series.
- (double)locationOfXNumericValue:(double)numericValue inSeries:(TKChartSeries *__nonnull)series
Declared In
TKChartSeriesRender.h
locationOfYNumericValue:inSeries:
Returns a y-coordinate of the y-numeric value for specific series.
- (double)locationOfYNumericValue:(double)numericValue inSeries:(TKChartSeries *__nonnull)series
Declared In
TKChartSeriesRender.h
pointFromData:pointIndex:inSeries:
Returns a visual point based on the provided information.
- (TKChartVisualPoint *__nonnull)pointFromData:(id<TKChartData> __nonnull)point pointIndex:(NSUInteger)index inSeries:(TKChartSeries *__nonnull)series
Parameters
- point
The data point that should be converted.
- index
The data point index.
- series
The series which contains this point.
Return Value
An instance of TKChartVisualPoint if successfull.
Declared In
TKChartSeriesRender.h
selectionWillChangeForSeries:andPoint:
This method is being called by TKChart when the selection is about to change.
- (void)selectionWillChangeForSeries:(TKChartSeries *__nonnull)series andPoint:(NSInteger)pointIndex
Parameters
- series
The series that is currently selected.
- pointIndex
The point index of the currently selected point.
Declared In
TKChartSeriesRender.h