-
Notifications
You must be signed in to change notification settings - Fork 382
Customization
The following properties are here to customize the appearance of the graph (colors, alphas, etc.).
- Top part of the graph
- Line of the graph
- Bottom part of the graph
- Points
- Axis labels
- Touch Input Line
- Popup label
The color of the top part of the graph (between the line and the top of the graph view).
@property (strong, nonatomic) UIColor *colorTop;
self.myGraph.colorTop = [UIColor colorWithRed:0 green:122.0/255.0 blue:255/255 alpha:1];
The alpha of the top part of the graph (between the line and the top of the graph view).
@property (nonatomic) CGFloat alphaTop;
self.myGraph.alphaTop = 1.0;
The color of the line of the graph.
@property (strong, nonatomic) UIColor *colorLine;
self.myGraph.colorLine = [UIColor colorWithRed:255.0/255.0 green:255.0/255.0 blue:255.0/255.0 alpha:1];
The alpha of the line of the graph.
@property (nonatomic) CGFloat alphaLine;
self.myGraph.alphaLine = 1.0;
The width of the line of the graph.
@property (nonatomic) CGFloat widthLine;
self.myGraph.widthLine = 1.0;
The color of the bottom part of the graph (between the line and the X-axis).
@property (strong, nonatomic) UIColor *colorBottom;
self.myGraph.colorBottom = [UIColor colorWithRed:0 green:122.0/255.0 blue:255/255 alpha:1];
The alpha of the bottom part of the graph (between the line and the X-axis).
@property (nonatomic) CGFloat alphaBottom;
self.myGraph.alphaBottom = 1.0;
The color of the circles that represent each point.
@property (strong, nonatomic) UIColor *colorPoint;
self.myGraph.colorPoint = [UIColor whiteColor];
The size of the circles that represent each point.
@property (nonatomic) CGFloat sizePoint;
self.myGraph.sizePoint = 10.0;
The color of the label's text displayed on the X-Axis.
@property (strong, nonatomic) UIColor *colorXaxisLabel;
self.myGraph.colorXaxisLabel = [UIColor blackColor];
The color of the label's text displayed on the Y-Axis.
@property (strong, nonatomic) UIColor *colorYaxisLabel;
self.myGraph.colorYaxisLabel = [UIColor blackColor];
The color of the X-Axis' background.
@property (strong, nonatomic) UIColor *colorBackgroundXaxis;
self.myGraph.colorBackgroundXaxis = nil;
The color of the Y-Axis' background.
@property (strong, nonatomic) UIColor *colorBackgroundYaxis;
self.myGraph.colorBackgroundYaxis = nil;
The alpha of the X-Axis' background.
@property (strong, nonatomic) UIColor *alphaBackgroundXaxis;
self.myGraph.alphaBackgroundXaxis = 1.0;
The alpha of the Y-Axis' background.
@property (strong, nonatomic) UIColor *alphaBackgroundYaxis;
self.myGraph.alphaBackgroundYaxis = 1.0;
The color of the line that appears when the user touches the graph.
@property (strong, nonatomic) UIColor *colorTouchInputLine;
self.myGraph.colorTouchInputLine = [UIColor grayColor];
The alpha of the line that appears when the user touches the graph. #####Declaration
@property (nonatomic) CGFloat alphaTouchInputLine;
self.myGraph.alphaTouchInputLine = 0.2;
The width of the line that appears when the user touches the graph.
@property (nonatomic) CGFloat widthTouchInputLine;
self.myGraph.widthTouchInputLine = 1.0;
The color of the pop up label's background displayed when the user touches the graph.
@property (strong, nonatomic) UIColor *colorBackgroundPopUplabel;
self.myGraph.colorBackgroundPopUplabel = [UIColor whiteColor];