File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,20 @@ Source code of this project is available under the standard MIT license. Please
23
23
24
24
Initialize ` GKBarGraph ` from nib or programmatically:
25
25
26
- ```
26
+ ``` objc
27
27
CGRect frame = CGRectMake(0 , 40 , 320 , 200 );
28
28
self.graphView = [[GKBarGraph alloc ] initWithFrame: frame] ;
29
29
```
30
30
31
31
then set `GKGraphViewDataSource`
32
32
33
- ```
33
+ ```objc
34
34
self.graphView.dataSource = self;
35
35
```
36
36
37
37
and call ` draw ` method.
38
38
39
- ```
39
+ ``` objc
40
40
[self .graphView draw ];
41
41
```
42
42
@@ -48,7 +48,7 @@ Please see [example][BAR].
48
48
49
49
#### ` GKBarGraphDataSource ` Protocol
50
50
51
- ```
51
+ ``` objc
52
52
@required
53
53
- (NSInteger )numberOfBars;
54
54
- (NSNumber *)valueForBarAtIndex:(NSInteger )index;
@@ -64,7 +64,7 @@ Please see [example][BAR].
64
64
65
65
![ Build Platform] ( images/line-graph.png )
66
66
67
- ```
67
+ ``` objc
68
68
CGRect frame = CGRectMake(0 , 40 , 320 , 200 );
69
69
self.graphView = [[GKLineGraph alloc ] initWithFrame: frame] ;
70
70
@@ -81,7 +81,7 @@ Please see [example][LINE].
81
81
82
82
#### `GKLineGraphDataSource` Protocol
83
83
84
- ```
84
+ ```objc
85
85
@required
86
86
- (NSInteger)numberOfLines;
87
87
- (UIColor *)colorForLineAtIndex:(NSInteger)index;
You can’t perform that action at this time.
0 commit comments