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