Skip to content

Commit c6dd5bd

Browse files
.
1 parent 62ef53b commit c6dd5bd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ Source code of this project is available under the standard MIT license. Please
2323

2424
Initialize `GKBarGraph` from nib or programmatically:
2525

26-
```
26+
```objc
2727
CGRect frame = CGRectMake(0, 40, 320, 200);
2828
self.graphView = [[GKBarGraph alloc] initWithFrame:frame];
2929
```
3030
3131
then set `GKGraphViewDataSource`
3232
33-
```
33+
```objc
3434
self.graphView.dataSource = self;
3535
```
3636

3737
and call `draw` method.
3838

39-
```
39+
```objc
4040
[self.graphView draw];
4141
```
4242

@@ -48,7 +48,7 @@ Please see [example][BAR].
4848

4949
#### `GKBarGraphDataSource` Protocol
5050

51-
```
51+
```objc
5252
@required
5353
- (NSInteger)numberOfBars;
5454
- (NSNumber *)valueForBarAtIndex:(NSInteger)index;
@@ -64,7 +64,7 @@ Please see [example][BAR].
6464

6565
![Build Platform](images/line-graph.png)
6666

67-
```
67+
```objc
6868
CGRect frame = CGRectMake(0, 40, 320, 200);
6969
self.graphView = [[GKLineGraph alloc] initWithFrame:frame];
7070

@@ -81,7 +81,7 @@ Please see [example][LINE].
8181
8282
#### `GKLineGraphDataSource` Protocol
8383
84-
```
84+
```objc
8585
@required
8686
- (NSInteger)numberOfLines;
8787
- (UIColor *)colorForLineAtIndex:(NSInteger)index;

0 commit comments

Comments
 (0)