xujunwen

fix bugs that the square style point show immediately

@@ -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