Inherits from TKChartPointAnnotation : TKChartAnnotation : NSObject
Declared in TKChartLayerAnnotation.h

Overview

Represents an annotation that contains a layer.

Properties

layer

The annotation layer.

@property (nonatomic, strong) CALayer *layer

Declared In

TKChartLayerAnnotation.h

Instance Methods

initWithLayer:

Initializes the annotation with a layer.

- (instancetype __nonnull)initWithLayer:(CALayer *__nonnull)layer

Parameters

layer

The layer to display with this annotation.

Declared In

TKChartLayerAnnotation.h

initWithLayer:X:Y:forSeries:

Initializes the annotation with a layer.

- (instancetype __nonnull)initWithLayer:(CALayer *__nonnull)layer X:(id __nonnull)xValue Y:(id __nonnull)yValue forSeries:(TKChartSeries *__nonnull)series

Parameters

layer

The layer to display with this annotation.

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

TKChartLayerAnnotation.h

initWithLayer:X:Y:forXAxis:forYAxis:

Initializes the annotation with a layer.

- (instancetype __nonnull)initWithLayer:(CALayer *__nonnull)layer X:(id __nonnull)xValue Y:(id __nonnull)yValue forXAxis:(TKChartAxis *__nonnull)xAxis forYAxis:(TKChartAxis *__nonnull)yAxis

Parameters

layer

The layer to display with this annotation.

xValue

The X coordinate of the annotation.

yValue

The Y coordinate of the annotation.

xAxis

The X TKChartAxis instance to use with the X coordinate.

yAxis

The Y TKChartAxis instance to use with the Y coordinate.

Declared In

TKChartLayerAnnotation.h

initWithLayer:point:forSeries:

Initializes the annotation with a layer.

- (instancetype __nonnull)initWithLayer:(CALayer *__nonnull)layer point:(id<TKChartData> __nonnull)point forSeries:(TKChartSeries *__nonnull)series

Parameters

layer

The layer to display with this annotation.

point

The location of the annotation.

series

The TKChartSeries instance to use with these coordinates.

Declared In

TKChartLayerAnnotation.h

initWithLayer:point:forXAxis:forYAxis:

Initializes the annotation with a layer.

- (instancetype __nonnull)initWithLayer:(CALayer *__nonnull)layer point:(id<TKChartData> __nonnull)point forXAxis:(TKChartAxis *__nonnull)xAxis forYAxis:(TKChartAxis *__nonnull)yAxis

Parameters

layer

The layer to display with this annotation.

point

The location of the annotation.

xAxis

The X TKChartAxis instance to use with the X coordinate.

yAxis

The Y TKChartAxis instance to use with the Y coordinate.

Declared In

TKChartLayerAnnotation.h