Inherits from TKStyleNode : NSObject
Declared in TKChartLegendStyle.h

Overview

Represents the layout style of a legend.

Tasks

Properties

fill

The fill color to be used as a background.

@property (nonatomic, strong) TKFill *fill

Return Value

An instance of UIColor representing the fill color.

Declared In

TKChartLegendStyle.h

insets

The insets to be applied on the legend view.

@property (nonatomic) UIEdgeInsets insets

Declared In

TKChartLegendStyle.h

offset

The offset at which to place the legend, according to the specified offsetOrigin.

@property (nonatomic, assign) UIOffset offset

Declared In

TKChartLegendStyle.h

offsetOrigin

The starting point for the offset property.

@property (nonatomic, assign) TKChartLegendOffsetOrigin offsetOrigin

Discussion

The legend offset origins are defined as follows:

typedef enum TKChartLegendOffsetOrigin {
    TKChartLegendOffsetOriginTopLeft,       // The offset is relative to the top left corner.
    TKChartLegendOffsetOriginTopRight,      // The offset is relative to the top right corner.
    TKChartLegendOffsetOriginBottomLeft,    // The offset is relative to the bottom left corner.
    TKChartLegendOffsetOriginBottomRight    // The offset is relative to the bottom right corner.
} TKChartLegendOffsetOrigin;

Declared In

TKChartLegendStyle.h

position

The position of the legend.

@property (nonatomic, assign) TKChartLegendPosition position

Discussion

The legend positions are defined as follows:

typedef enum TKChartLegendPosition {
    TKChartLegendPositionLeft,      // The legend is positioned at the left side of the chart.
    TKChartLegendPositionRight,     // The legend is positioned at the right side of the chart.
    TKChartLegendPositionTop,       // The legend is positioned at the top side of the chart.
    TKChartLegendPositionBottom,    // The legend is positioned at the bottom side of the chart.
    TKChartLegendPositionFloating   // The legend is floating. You should set the offset and offsetOrigin properties when using this option.
} TKChartLegendPosition;

Declared In

TKChartLegendStyle.h

stroke

The stroke color to be used for the legend frame.

@property (nonatomic, strong) TKStroke *stroke

Return Value

An instance of UIColor representing the stroke color.

Declared In

TKChartLegendStyle.h