Inherits from TKView : UIView
Declared in TKChartLegendView.h

Overview

The legend in TKChart.

Properties

allowSelection

Determines whether tapping on legend items will change selection. By default, it is YES.

@property (nonatomic, assign) BOOL allowSelection

Declared In

TKChartLegendView.h

chart

The legend’s chart.

@property (nonatomic, weak) TKChart *chart

Declared In

TKChartLegendView.h

container

The container that contains legend items.

@property (nonatomic, strong, readonly) TKChartLegendContainer *container

Return Value

A TKChartLegendContainer containing legend items.

Declared In

TKChartLegendView.h

showTitle

Determines visibility of legend title. By default, it is NO.

@property (nonatomic, assign) BOOL showTitle

Declared In

TKChartLegendView.h

style

The legend’s style.

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

Declared In

TKChartLegendView.h

titleLabel

The text title of the legend.

@property (nonatomic, strong, readonly) UILabel *titleLabel

Return Value

A UILanbel representing the title of the legend.

Declared In

TKChartLegendView.h

Instance Methods

initWithChart:

Initializes the legend with a TKChart instance.

- (instancetype __nonnull)initWithChart:(TKChart *__nonnull)chart

Parameters

chart

The associated TKChart instance.

Declared In

TKChartLegendView.h

reloadItems

Reloads the legends view.

- (void)reloadItems

Declared In

TKChartLegendView.h

update

Updates legend item states when selection has changed.

- (void)update

Declared In

TKChartLegendView.h