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

Overview

A balloon annotation.

Properties

attributedText

The attributed text that will be displayed with this annotation. When set, this property disables the effect of the text property.

@property (nonatomic, strong) NSAttributedString *attributedText

Declared In

TKChartBalloonAnnotation.h

size

The balloon size. The size is calculated automatically when this property is set to CGSizeEmpty (which is by default).

@property (nonatomic, assign) CGSize size

Declared In

TKChartBalloonAnnotation.h

style

The annotation style. It can be used to customize the annotation appearance.

@property (nonatomic, strong, readonly) TKChartBalloonAnnotationStyle *style

Declared In

TKChartBalloonAnnotation.h

text

The text that will be displayed with this annotation.

@property (nonatomic, copy) NSString *text

Declared In

TKChartBalloonAnnotation.h

view

An optional view to display with this annotation.

@property (nonatomic, strong) UIView *view

Declared In

TKChartBalloonAnnotation.h

Instance Methods

initWithText:

Initializes the annotation with a text.

- (instancetype __nonnull)initWithText:(NSString *__nonnull)text

Parameters

text

The text that is displayed with this annotation.

Declared In

TKChartBalloonAnnotation.h

initWithText:X:Y:forSeries:

Initializes the annotation with a text.

- (instancetype __nonnull)initWithText:(NSString *__nonnull)text X:(id __nonnull)xValue Y:(id __nonnull)yValue forSeries:(TKChartSeries *__nonnull)series

Parameters

text

The text that is displayed 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

TKChartBalloonAnnotation.h

initWithText:X:Y:forXAxis:forYAxis:

Initializes the annotation with a text, X-value, Y-value, X-axis and a Y-axis.

- (instancetype __nonnull)initWithText:(NSString *__nonnull)text X:(id __nonnull)xValue Y:(id __nonnull)yValue forXAxis:(TKChartAxis *__nonnull)xAxis forYAxis:(TKChartAxis *__nonnull)yAxis

Parameters

text

The text that is displayed 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

TKChartBalloonAnnotation.h

initWithText:point:forSeries:

Initializes the annotation with a text.

- (instancetype __nonnull)initWithText:(NSString *__nonnull)text point:(id<TKChartData> __nonnull)point forSeries:(TKChartSeries *__nonnull)series

Parameters

text

The text that will be displayed with this annotation.

point

The location of the annotation.

series

The TKChartSeries instance to use with these coordinates.

Declared In

TKChartBalloonAnnotation.h

initWithText:point:forXAxis:forYAxis:

Initializes the annotation with a text, data point, X-axis and a Y-axis.

- (instancetype __nonnull)initWithText:(NSString *__nonnull)text point:(id<TKChartData> __nonnull)point forXAxis:(TKChartAxis *__nonnull)xAxis forYAxis:(TKChartAxis *__nonnull)yAxis

Parameters

text

The text that will be displayed with this annotation.

point

The location of the annotation.

xAxis

The X TKChartAxis instance to use with the X coordinate of the provided data point.

yAxis

The Y TKChartAxis instance to use with the Y coordinate of the provided data point.

Declared In

TKChartBalloonAnnotation.h