-
Notifications
You must be signed in to change notification settings - Fork 0
/
SAChartView.h
43 lines (33 loc) · 1.26 KB
/
SAChartView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// SAChartView.h
// EditMyFields
//
// Created by SCOTT ASHMORE on 16/02/2012.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SAEditViewController.h"
#import "SAOverlay.h"
@interface SAChartView : UIView
@property (strong, nonatomic) SARow *myRow;
@property (strong, nonatomic) SAChartDef *chartDef;
@property (nonatomic) double xInset;
@property (nonatomic) double yInset;
@property (nonatomic) double yAxisTickCount;
@property (nonatomic) double xOffset;
@property (nonatomic) double yOffset;
@property (nonatomic) double xAxisPointLength;
@property (nonatomic) double xAxisTickCount;
@property (nonatomic) double xAxisTickSpace;
@property (nonatomic) double yAxisPointLength;
@property (nonatomic) double yAxisTickSpace;
@property (nonatomic) double yUnit;
-(void)drawDataSetGradient:(CGContextRef) ctx;
-(void)drawAxis:(CGContextRef) ctx;
-(void)drawChartHeader:(CGContextRef) ctx;
-(void)drawAxisLabels:(CGContextRef) ctx;
-(void)drawDataPoints:(CGContextRef) ctx;
-(void)drawDataLines:(CGContextRef) ctx;
-(void)drawDataLine:(CGContextRef)ctx witValueArray:(NSArray *)dataPoints andColor:(UIColor *)lineColor;
-(void)drawDataPoint:(CGContextRef)ctx witValueArray:(NSArray *)dataPoints andColor:(UIColor *)lineColor;
@end