HIColor Class Reference

Inherits from HIChartsJSONSerializable : NSObject
Declared in HIColor.h

Overview

This class provides color management in the chart.

– initWithHexValue:

Standard hex color value, for example FFFFFF for black and 000000 for white

- (instancetype)initWithHexValue:(NSString *)string

Declared In

HIColor.h

– initWithRGB:green:blue:

Values of red, green and blue color in RGB standard: values 0-255

- (instancetype)initWithRGB:(int)red green:(int)green blue:(int)blue

Declared In

HIColor.h

– initWithRGBA:green:blue:alpha:

Values of red, green and blue color in RGBa standard. Values for colors: 0-255, alpha: 0-1

- (instancetype)initWithRGBA:(int)red green:(int)green blue:(int)blue alpha:(double)alpha

Declared In

HIColor.h

– initWithName:

Standard color names: red, green, black etc.

- (instancetype)initWithName:(NSString *)name

Declared In

HIColor.h

– initWithLinearGradient:stops:

CSS-style linear gradient

- (instancetype)initWithLinearGradient:(NSDictionary *)gradient stops:(NSArray *)stops

Declared In

HIColor.h

– initWithRadialGradient:stops:

CSS-style radial gradient

- (instancetype)initWithRadialGradient:(NSDictionary *)gradient stops:(NSArray *)stops

Declared In

HIColor.h

– initWithUIColor:

Init with UIKit’s UIColor

- (instancetype)initWithUIColor:(UIColor *)color

Declared In

HIColor.h

– initWithPattern:

Pattern fill

- (instancetype)initWithPattern:(HIPatternObject *)pattern

Declared In

HIColor.h

– getData

- (id)getData