Showing
2 changed files
with
17 additions
and
2 deletions
| @@ -374,7 +374,7 @@ | @@ -374,7 +374,7 @@ | ||
| 374 | // Make a circular shape | 374 | // Make a circular shape |
| 375 | circle.path = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(X - radius, Y - radius, 2.0*radius, 2.0*radius) | 375 | circle.path = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(X - radius, Y - radius, 2.0*radius, 2.0*radius) |
| 376 | cornerRadius:radius].CGPath; | 376 | cornerRadius:radius].CGPath; |
| 377 | - // Configure the apperence of the circle | 377 | + // Configure the appearence of the circle |
| 378 | circle.fillColor = [chartData.fillColor CGColor]; | 378 | circle.fillColor = [chartData.fillColor CGColor]; |
| 379 | circle.strokeColor = [chartData.strokeColor CGColor]; | 379 | circle.strokeColor = [chartData.strokeColor CGColor]; |
| 380 | circle.lineWidth = 1; | 380 | circle.lineWidth = 1; |
| @@ -396,7 +396,7 @@ | @@ -396,7 +396,7 @@ | ||
| 396 | return square; | 396 | return square; |
| 397 | } | 397 | } |
| 398 | else { | 398 | else { |
| 399 | - // you cann add your own scatter chart poin here | 399 | + // you cann add your own scatter chart point here |
| 400 | } | 400 | } |
| 401 | return nil ; | 401 | return nil ; |
| 402 | } | 402 | } |
| @@ -248,6 +248,21 @@ lineChart.delegate = self; | @@ -248,6 +248,21 @@ lineChart.delegate = self; | ||
| 248 | 248 | ||
| 249 | ``` | 249 | ``` |
| 250 | 250 | ||
| 251 | +#### Animation | ||
| 252 | + | ||
| 253 | +Animation is enabled by default when drawing all charts. It can be disabled by setting `displayAnimation = NO`. | ||
| 254 | + | ||
| 255 | +```objective-c | ||
| 256 | +#import "PNChart.h" | ||
| 257 | + | ||
| 258 | +//For LineChart | ||
| 259 | + | ||
| 260 | +lineChart.displayAnimation = NO; | ||
| 261 | + | ||
| 262 | +``` | ||
| 263 | + | ||
| 264 | + | ||
| 265 | + | ||
| 251 | ```objective-c | 266 | ```objective-c |
| 252 | 267 | ||
| 253 | //For DelegateMethod | 268 | //For DelegateMethod |
-
Please register or login to post a comment