Inherits from UIView
Declared in TKChartLegendItem.h

Overview

The legend item contained in TKChartLegendContainer class.

Tasks

Properties

icon

The view containing the icon of the legend item.

@property (nonatomic, strong) UIView *icon

Return Value

The UIView representing the icon of the legend item.

Declared In

TKChartLegendItem.h

label

The label of the legend item.

@property (nonatomic, strong) UILabel *label

Return Value

The UILabel representing the text of the legend item.

Declared In

TKChartLegendItem.h

selectionInfo

The selection information object.

@property (nonatomic, strong) TKChartSelectionInfo *selectionInfo

Discussion

When this parameter is provided and the user touches the legend item related series (and data points if specified) are selected.

Declared In

TKChartLegendItem.h

stack

The stack layout responsible for arranging the legend items

@property (nonatomic, strong, readonly) TKCoreStackLayout *stack

Declared In

TKChartLegendItem.h

style

The legend item’s style.

@property (nonatomic, strong) TKChartLegendItemStyle *style

Declared In

TKChartLegendItem.h

Instance Methods

tap:

Called when the item was touched.

- (void)tap:(UITapGestureRecognizer *__nonnull)tapRecognizer

Parameters

tapRecognizer

The tap gesture recognizer.

Declared In

TKChartLegendItem.h

update

Updates legend item state when selection has changed.

- (void)update

Declared In

TKChartLegendItem.h