Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -331,7 +331,8 @@ | @@ -331,7 +331,8 @@ | ||
| 331 | [chartLine addAnimation:pathAnimation forKey:@"strokeEndAnimation"]; | 331 | [chartLine addAnimation:pathAnimation forKey:@"strokeEndAnimation"]; |
| 332 | chartLine.strokeEnd = 1.0; | 332 | chartLine.strokeEnd = 1.0; |
| 333 | 333 | ||
| 334 | - if (chartData.inflexionPointStyle == PNLineChartPointStyleCycle) { | 334 | + // if you want cancel the point animation, conment this code, the point will show immediately |
| 335 | + if (chartData.inflexionPointStyle != PNLineChartPointStyleNone) { | ||
| 335 | [pointLayer addAnimation:pathAnimation forKey:@"strokeEndAnimation"]; | 336 | [pointLayer addAnimation:pathAnimation forKey:@"strokeEndAnimation"]; |
| 336 | } | 337 | } |
| 337 | 338 |
-
Please register or login to post a comment