Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
PNChart
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
kevinzhow
2013-12-12 09:20:12 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4f56031e95dfe93501a5f208c0eca55feee2c2f9
4f56031e
1 parent
18519571
Update example of PNCircleChart
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
README.md
README.md
View file @
4f56031
...
...
@@ -62,14 +62,14 @@ You will need LLVM 3.0 or later in order to build PNChart.
```
objective-c
#import "PNChart.h"
#import "PNChart.h"
//For CircleChart
//For CircleChart
PNCircleChart
*
circleChart =
[
[PNCircleChart alloc
]
initWithFrame:CGRectMake(0, 135.0, SCREEN_WIDTH, 200.0)
];
circleChart.total =
[
NSNumber numberWithInt:100
]
;
circleChart.current =
[
NSNumber numberWithInt:60
]
;
[
circleChart strokeChart
]
;
PNCircleChart
*
circleChart =
[
[PNCircleChart alloc
]
initWithFrame:CGRectMake(0, 80.0, SCREEN_WIDTH, 100.0) andTotal:
[
NSNumber numberWithInt:100
]
andCurrent:
[
NSNumber numberWithInt:60
]
];
circleChart.backgroundColor =
[
UIColor clearColor
]
;
[
circleChart setStrokeColor:PNGreen
]
;
[
circleChart strokeChart
]
;
```
...
...
Please
register
or
login
to post a comment