DXPalette Class

A palette (collection of colors) used to draw a chart's series.

Declaration

@interface DXPalette

Properties

DXPalette.colors Property

Gets or sets an array of palette colors.

Declaration

@property (readwrite, nonatomic, nullable) NSArray<UIColor*> *colors

Property Value

Type Description
NSArray<UIColor *> *

The array of UIColor objects, that are used to color series.

Instance Methods

DXPalette.initWithColors: Instance Method

Initializes a new DXPalette instance with the specified colors.

Declaration

- (instancetype)initWithColors:(NSArray<UIColor*> *)colors

Parameters

Type Name Description
NSArray<UIColor *> * colors

An array of colors that forms a palette.

Returns

Type Description
instancetype