Showing
1 changed file
with
3 additions
and
3 deletions
| @@ -38,7 +38,7 @@ You will need LLVM 3.0 or later in order to build PNChart. | @@ -38,7 +38,7 @@ You will need LLVM 3.0 or later in order to build PNChart. | ||
| 38 | #import "PNChart.h" | 38 | #import "PNChart.h" |
| 39 | 39 | ||
| 40 | //For LineChart | 40 | //For LineChart |
| 41 | - PNChart * lineChart = [[PNChart alloc] initWithFrame:CGRectMake(0, 135.0, SCREEN_WIDTH, 200.0)]; | 41 | + PNLineChart * lineChart = [[PNLineChart alloc] initWithFrame:CGRectMake(0, 135.0, SCREEN_WIDTH, 200.0)]; |
| 42 | [lineChart setXLabels:@[@"SEP 1",@"SEP 2",@"SEP 3",@"SEP 4",@"SEP 5"]]; | 42 | [lineChart setXLabels:@[@"SEP 1",@"SEP 2",@"SEP 3",@"SEP 4",@"SEP 5"]]; |
| 43 | [lineChart setYValues:@[@1, @10, @2, @6, @3]]; | 43 | [lineChart setYValues:@[@1, @10, @2, @6, @3]]; |
| 44 | [lineChart strokeChart]; | 44 | [lineChart strokeChart]; |
| @@ -51,7 +51,7 @@ You will need LLVM 3.0 or later in order to build PNChart. | @@ -51,7 +51,7 @@ You will need LLVM 3.0 or later in order to build PNChart. | ||
| 51 | #import "PNChart.h" | 51 | #import "PNChart.h" |
| 52 | 52 | ||
| 53 | //For BarChart | 53 | //For BarChart |
| 54 | - PNChart * barChart = [[PNChart alloc] initWithFrame:CGRectMake(0, 135.0, SCREEN_WIDTH, 200.0)]; | 54 | + PNBarChart * barChart = [[PNBarChart alloc] initWithFrame:CGRectMake(0, 135.0, SCREEN_WIDTH, 200.0)]; |
| 55 | barChart.type = PNBarType; | 55 | barChart.type = PNBarType; |
| 56 | [barChart setXLabels:@[@"SEP 1",@"SEP 2",@"SEP 3",@"SEP 4",@"SEP 5"]]; | 56 | [barChart setXLabels:@[@"SEP 1",@"SEP 2",@"SEP 3",@"SEP 4",@"SEP 5"]]; |
| 57 | [barChart setYValues:@[@1, @10, @2, @6, @3]]; | 57 | [barChart setYValues:@[@1, @10, @2, @6, @3]]; |
| @@ -67,7 +67,7 @@ You will need LLVM 3.0 or later in order to build PNChart. | @@ -67,7 +67,7 @@ You will need LLVM 3.0 or later in order to build PNChart. | ||
| 67 | 67 | ||
| 68 | //For CircleChart | 68 | //For CircleChart |
| 69 | 69 | ||
| 70 | - PNChart * circleChart = [[PNChart alloc] initWithFrame:CGRectMake(0, 135.0, SCREEN_WIDTH, 200.0)]; | 70 | + PNCircleChart * circleChart = [[PNCircleChart alloc] initWithFrame:CGRectMake(0, 135.0, SCREEN_WIDTH, 200.0)]; |
| 71 | circleChart.type = PNCircleType; | 71 | circleChart.type = PNCircleType; |
| 72 | circleChart.total = [NSNumber numberWithInt:100]; | 72 | circleChart.total = [NSNumber numberWithInt:100]; |
| 73 | circleChart.current = [NSNumber numberWithInt:60]; | 73 | circleChart.current = [NSNumber numberWithInt:60]; |
-
Please register or login to post a comment