DXPalette Class
A palette (collection of colors) used to draw a chart’s series.
Declaration
@interface DXPalette
Properties
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
initWithColors: Instance Method
Initializes a new DXPalette instance with the specified colors.
Declaration
- (instancetype)initWithColors:(NSArray<UIColor*> *)colors
Parameters
Name | Type | Description |
---|---|---|
colors | NSArray<UIColor *> * | An array of colors that forms a palette. |
Returns
Type | Description |
---|---|
instancetype | The new palette instance. |