Inherits from UIView
Declared in IGLegend.h

Overview

This is the base class for the chart legend. This class should not be allocated.

Tasks

Properties

badgeSize

The size of each legend item’s badge

@property (nonatomic, assign) CGSize badgeSize

Declared In

IGLegend.h

legendType

Whether the legend should be used to display a different legend item for each series, or for each item in a series.

@property (nonatomic, readonly) IGChartLegendType legendType

Declared In

IGLegend.h

theme

The theme to be used to style items

@property (nonatomic, readonly) IGChartThemeDefinitionBase *theme

Declared In

IGLegend.h

Instance Methods

buildItemViews:

ONLY TO BE USED IN DERIVED CLASS

- (void)buildItemViews:(NSMutableArray *)items

Discussion

Allows a custom legend to build up a view with new items.

Declared In

IGLegend.h

initWithFrame:andLegendType:

Initializes and returns a lgend view object with a set frame for displaying a specific legend type.

- (id)initWithFrame:(CGRect)frame andLegendType:(IGChartLegendType)legendType

Parameters

frame

Size of the legend.

legendType

Whether the legend should be used for displaying items of a series, or an item per series.

Return Value

Returns an initialized IGLegend object or nil if the object could not be successfully initialized.

Declared In

IGLegend.h

initWithLegendType:

Initializes and returns a lgend view object for displaying a specific legend type.

- (id)initWithLegendType:(IGChartLegendType)legendType

Parameters

legendType

Whether the legend should be used for displaying items of a series, or an item per series.

Return Value

Returns an initialized IGLegend object or nil if the object could not be successfully initialized.

Declared In

IGLegend.h

updateItems

ONLY TO BE USED IN DERIVED CLASS

- (void)updateItems

Discussion

Notifies a custom legend that it might need to update its layout.

Declared In

IGLegend.h