Showing
2 changed files
with
3 additions
and
3 deletions
| @@ -29,7 +29,7 @@ | @@ -29,7 +29,7 @@ | ||
| 29 | PNChart * lineChart = [[PNChart alloc] initWithFrame:CGRectMake(0, 75.0, SCREEN_WIDTH, 200.0)]; | 29 | PNChart * lineChart = [[PNChart alloc] initWithFrame:CGRectMake(0, 75.0, SCREEN_WIDTH, 200.0)]; |
| 30 | lineChart.backgroundColor = [UIColor clearColor]; | 30 | lineChart.backgroundColor = [UIColor clearColor]; |
| 31 | [lineChart setXLabels:@[@"SEP 1",@"SEP 2",@"SEP 3",@"SEP 4",@"SEP 5"]]; | 31 | [lineChart setXLabels:@[@"SEP 1",@"SEP 2",@"SEP 3",@"SEP 4",@"SEP 5"]]; |
| 32 | - [lineChart setYValues:@[@"1",@"10",@"2",@"6",@"3"]]; | 32 | + [lineChart setYValues:@[@"1",@"240",@"122",@"186",@"300"]]; |
| 33 | [lineChart strokeChart]; | 33 | [lineChart strokeChart]; |
| 34 | [self.chartScrollView addSubview:lineChartLabel]; | 34 | [self.chartScrollView addSubview:lineChartLabel]; |
| 35 | [self.chartScrollView addSubview:lineChart]; | 35 | [self.chartScrollView addSubview:lineChart]; |
| @@ -46,7 +46,7 @@ | @@ -46,7 +46,7 @@ | ||
| 46 | barChart.backgroundColor = [UIColor clearColor]; | 46 | barChart.backgroundColor = [UIColor clearColor]; |
| 47 | barChart.type = PNBarType; | 47 | barChart.type = PNBarType; |
| 48 | [barChart setXLabels:@[@"SEP 1",@"SEP 2",@"SEP 3",@"SEP 4",@"SEP 5"]]; | 48 | [barChart setXLabels:@[@"SEP 1",@"SEP 2",@"SEP 3",@"SEP 4",@"SEP 5"]]; |
| 49 | - [barChart setYValues:@[@"1",@"10",@"2",@"6",@"3"]]; | 49 | + [barChart setYValues:@[@"1",@"240",@"122",@"186",@"300"]]; |
| 50 | [barChart strokeChart]; | 50 | [barChart strokeChart]; |
| 51 | [self.chartScrollView addSubview:barChartLabel]; | 51 | [self.chartScrollView addSubview:barChartLabel]; |
| 52 | [self.chartScrollView addSubview:barChart]; | 52 | [self.chartScrollView addSubview:barChart]; |
| 1 | #PNChart | 1 | #PNChart |
| 2 | 2 | ||
| 3 | -A simple and beautiful chart lib with animation used in Piner for iOS | 3 | +A simple and beautiful chart lib with animation used in [Piner](https://itunes.apple.com/us/app/piner/id637706410) for iOS |
| 4 | 4 | ||
| 5 | [](http://dl.dropboxusercontent.com/u/1599662/pnchart.png) | 5 | [](http://dl.dropboxusercontent.com/u/1599662/pnchart.png) |
| 6 | 6 |
-
Please register or login to post a comment