DXLegendStyle Class

The legend's appearance settings storage.

Syntax

@interface DXLegendStyle: DXChartElementStyle

The following image demonstrates parameters that this style contains:

Legend style parameters

Inheritance

NSObject
DXChartElementStyle
DXLegendStyle

Properties

backgroundColor Property

Gets or sets the background color of the legend.

Syntax

@property (readwrite, nullable) UIColor *backgroundColor

Returns

Type Description
UIColor *

The UIColor object that specifies the background color.

To reset the default color, set this property to nil.

borderColor Property

Gets or sets the color of the legend border.

Syntax

@property (readwrite, nullable) UIColor *borderColor

Returns

Type Description
UIColor *

The UIColor object that specifies the border color.

To reset the default color, set this property to nil.

borderThickness Property

Gets or sets the thicknerss of the legend border.

Syntax

@property (readwrite) CGFloat borderThickness

Returns

Type Description
CGFloat

The thickness of the border, in screen points.

indentFromDiagram Property

Gets or sets the indent between the legend and the chart.

Syntax

@property (readwrite) UIEdgeInsets indentFromDiagram

Returns

Type Description
UIEdgeInsets

The indent between the legend and the chart, in screen points.

If legend is positioned outside the plot area, this property specifies indent between the plot area and the legend.

itemsHorizontalIndent Property

Gets or sets the indent between items when they are laid out horizontally.

Syntax

@property (readwrite) CGFloat itemsHorizontalIndent

Returns

Type Description
CGFloat

The indent between legend items, in screen points.

itemsVerticalIndent Property

Gets or sets the indent between items when they are laid out vertically.

Syntax

@property (readwrite) CGFloat itemsVerticalIndent

Returns

Type Description
CGFloat

The indent between legend items, in screen points.

markerSize Property

Gets or sets the marker size of a legend item.

Syntax

@property (readwrite) CGFloat markerSize

Returns

Type Description
CGFloat

The size of a legend item, in screen points.

padding Property

Gets or sets the legend padding.

Syntax

@property (readwrite) UIEdgeInsets padding

Returns

Type Description
UIEdgeInsets

The legend padding, in screen points.

textIndent Property

Gets or sets the indent between a marker and a text of a legend item.

Syntax

@property (readwrite) CGFloat textIndent

Returns

Type Description
CGFloat

The indent between a marker and a text, in screen points.

textStyle Property

Gets or sets legend items' text appearance settings.

Syntax

@property (readwrite, nullable) DXTextStyle *textStyle

Returns

Type Description
DXTextStyle *

Legend items' text appearance settings storage.

Set this property to nil to reset the default test appearance.