Skip to content

Customization

Mikho Juice edited this page Jun 2, 2017 · 1 revision

The following properties are here to customize the appearance of the graph (colors, alphas, etc.).


###colorTop The color of the top part of the graph (between the line and the top of the graph view). #####Declaration

@property (strong, nonatomic) UIColor *colorTop;

#####Usage & Default Value

self.myGraph.colorTop = [UIColor colorWithRed:0 green:122.0/255.0 blue:255/255 alpha:1];

###alphaTop The alpha of the top part of the graph (between the line and the top of the graph view). #####Declaration

@property (nonatomic) CGFloat alphaTop;

#####Usage & Default Value

self.myGraph.alphaTop = 1.0;

###colorLine The color of the line of the graph. #####Declaration

@property (strong, nonatomic) UIColor *colorLine;

#####Usage & Default Value

self.myGraph.colorLine = [UIColor colorWithRed:255.0/255.0 green:255.0/255.0 blue:255.0/255.0 alpha:1];

###alphaLine The alpha of the line of the graph. #####Declaration

@property (nonatomic) CGFloat alphaLine;

#####Usage & Default Value

self.myGraph.alphaLine = 1.0;

###widthLine The width of the line of the graph. #####Declaration

@property (nonatomic) CGFloat widthLine;

#####Usage & Default Value

self.myGraph.widthLine = 1.0;

###colorBottom The color of the bottom part of the graph (between the line and the X-axis). #####Declaration

@property (strong, nonatomic) UIColor *colorBottom;

#####Usage & Default Value

self.myGraph.colorBottom = [UIColor colorWithRed:0 green:122.0/255.0 blue:255/255 alpha:1];

###alphaBottom The alpha of the bottom part of the graph (between the line and the X-axis). #####Declaration

@property (nonatomic) CGFloat alphaBottom;

#####Usage & Default Value

self.myGraph.alphaBottom = 1.0;

###colorPoint The color of the circles that represent each point. #####Declaration

@property (strong, nonatomic) UIColor *colorPoint;

#####Usage & Default Value

self.myGraph.colorPoint = [UIColor whiteColor];

###sizePoint The size of the circles that represent each point. #####Declaration

@property (nonatomic) CGFloat sizePoint;

#####Usage & Default Value

self.myGraph.sizePoint = 10.0;

###colorXaxisLabel The color of the label's text displayed on the X-Axis. #####Declaration

@property (strong, nonatomic) UIColor *colorXaxisLabel;

#####Usage & Default Value

self.myGraph.colorXaxisLabel = [UIColor blackColor];

###colorYaxisLabel The color of the label's text displayed on the Y-Axis. #####Declaration

@property (strong, nonatomic) UIColor *colorYaxisLabel;

#####Usage & Default Value

self.myGraph.colorYaxisLabel = [UIColor blackColor];

###colorBackgroundXaxis The color of the X-Axis' background. #####Declaration

@property (strong, nonatomic) UIColor *colorBackgroundXaxis;

#####Usage & Default Value

self.myGraph.colorBackgroundXaxis = nil;

###colorBackgroundYaxis The color of the Y-Axis' background. #####Declaration

@property (strong, nonatomic) UIColor *colorBackgroundYaxis;

#####Usage & Default Value

self.myGraph.colorBackgroundYaxis = nil;

###alphaBackgroundXaxis The alpha of the X-Axis' background. #####Declaration

@property (strong, nonatomic) UIColor *alphaBackgroundXaxis;

#####Usage & Default Value

self.myGraph.alphaBackgroundXaxis = 1.0;

###alphaBackgroundYaxis The alpha of the Y-Axis' background. #####Declaration

@property (strong, nonatomic) UIColor *alphaBackgroundYaxis;

#####Usage & Default Value

self.myGraph.alphaBackgroundYaxis = 1.0;

###colorTouchInputLine The color of the line that appears when the user touches the graph. #####Declaration

@property (strong, nonatomic) UIColor *colorTouchInputLine;

#####Usage & Default Value

self.myGraph.colorTouchInputLine = [UIColor grayColor];

###alphaTouchInputLine The alpha of the line that appears when the user touches the graph. #####Declaration

@property (nonatomic) CGFloat alphaTouchInputLine;

#####Usage & Default Value

self.myGraph.alphaTouchInputLine = 0.2;

###widthTouchInputLine The width of the line that appears when the user touches the graph. #####Declaration

@property (nonatomic) CGFloat widthTouchInputLine;

#####Usage & Default Value

self.myGraph.widthTouchInputLine = 1.0;

###colorBackgroundPopUplabel The color of the pop up label's background displayed when the user touches the graph. #####Declaration

@property (strong, nonatomic) UIColor *colorBackgroundPopUplabel;

#####Usage & Default Value

self.myGraph.colorBackgroundPopUplabel = [UIColor whiteColor];