@@ -25,7 +25,8 @@ - (void)viewDidLoad {
25
25
self.view .backgroundColor = [UIColor gk_cloudsColor ];
26
26
27
27
[self _setupExampleGraph ];
28
- // [self _setupTestingGraph];
28
+ // [self _setupTestingGraphLow];
29
+ // [self _setupTestingGraphHigh];
29
30
}
30
31
31
32
- (void )_setupExampleGraph {
@@ -48,7 +49,7 @@ - (void)_setupExampleGraph {
48
49
[self .graph draw ];
49
50
}
50
51
51
- - (void )_setupTestingGraph {
52
+ - (void )_setupTestingGraphLow {
52
53
53
54
/*
54
55
A custom max and min values can be achieved by adding
@@ -71,6 +72,23 @@ - (void)_setupTestingGraph {
71
72
[self .graph draw ];
72
73
}
73
74
75
+ - (void )_setupTestingGraphHigh {
76
+
77
+ self.data = @[
78
+ @[@1000 , @2000 , @3000 , @4000 , @5000 , @6000 , @10000 ]
79
+ ];
80
+
81
+ self.labels = @[@" 2001" , @" 2002" , @" 2003" , @" 2004" , @" 2005" , @" 2006" , @" 2007" ];
82
+
83
+ self.graph .dataSource = self;
84
+ self.graph .lineWidth = 3.0 ;
85
+
86
+ // self.graph.startFromZero = YES;
87
+ self.graph .valueLabelCount = 10 ;
88
+
89
+ [self .graph draw ];
90
+ }
91
+
74
92
- (void )didReceiveMemoryWarning {
75
93
[super didReceiveMemoryWarning ];
76
94
}
0 commit comments