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:18:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
eed7a94f1191c5dda8c1fd8c34ec26095a4a7b1d
eed7a94f
1 parent
a7b298ff
Fix readme
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
README.md
README.md
View file @
eed7a94
...
...
@@ -38,7 +38,7 @@ You will need LLVM 3.0 or later in order to build PNChart.
#import "PNChart.h"
//For LineChart
PN
Chart * lineChart = [[PN
Chart alloc] initWithFrame:CGRectMake(0, 135.0, SCREEN_WIDTH, 200.0)];
PN
LineChart * lineChart = [[PNLine
Chart alloc] initWithFrame:CGRectMake(0, 135.0, SCREEN_WIDTH, 200.0)];
[lineChart setXLabels:@[@"SEP 1",@"SEP 2",@"SEP 3",@"SEP 4",@"SEP 5"]];
[lineChart setYValues:@[@1, @10, @2, @6, @3]];
[lineChart strokeChart];
...
...
@@ -51,7 +51,7 @@ You will need LLVM 3.0 or later in order to build PNChart.
#import "PNChart.h"
//For BarChart
PN
Chart * barChart = [[PN
Chart alloc] initWithFrame:CGRectMake(0, 135.0, SCREEN_WIDTH, 200.0)];
PN
BarChart * barChart = [[PNBar
Chart alloc] initWithFrame:CGRectMake(0, 135.0, SCREEN_WIDTH, 200.0)];
barChart.type = PNBarType;
[barChart setXLabels:@[@"SEP 1",@"SEP 2",@"SEP 3",@"SEP 4",@"SEP 5"]];
[barChart setYValues:@[@1, @10, @2, @6, @3]];
...
...
@@ -67,7 +67,7 @@ You will need LLVM 3.0 or later in order to build PNChart.
//For CircleChart
PNC
hart
*
circleChart =
[
[PN
Chart alloc
]
initWithFrame:CGRectMake(0, 135.0, SCREEN_WIDTH, 200.0)];
PNC
ircleChart
*
circleChart =
[
[PNCircle
Chart alloc
]
initWithFrame:CGRectMake(0, 135.0, SCREEN_WIDTH, 200.0)];
circleChart.type = PNCircleType;
circleChart.total =
[
NSNumber numberWithInt:100
]
;
circleChart.current =
[
NSNumber numberWithInt:60
]
;
...
...
Please
register
or
login
to post a comment