kevinzhow

Change path value update

@@ -517,6 +517,7 @@ @@ -517,6 +517,7 @@
517 517
518 518
519 CABasicAnimation * pathAnimation = [CABasicAnimation animationWithKeyPath:@"path"]; 519 CABasicAnimation * pathAnimation = [CABasicAnimation animationWithKeyPath:@"path"];
  520 + pathAnimation.fromValue = (id)chartLine.path;
520 pathAnimation.toValue = (id)[progressline CGPath]; 521 pathAnimation.toValue = (id)[progressline CGPath];
521 pathAnimation.duration = 0.5f; 522 pathAnimation.duration = 0.5f;
522 pathAnimation.autoreverses = NO; 523 pathAnimation.autoreverses = NO;
@@ -525,6 +526,7 @@ @@ -525,6 +526,7 @@
525 526
526 527
527 CABasicAnimation * pointPathAnimation = [CABasicAnimation animationWithKeyPath:@"path"]; 528 CABasicAnimation * pointPathAnimation = [CABasicAnimation animationWithKeyPath:@"path"];
  529 + pointPathAnimation.fromValue = (id)pointLayer.path;
528 pointPathAnimation.toValue = (id)[pointPath CGPath]; 530 pointPathAnimation.toValue = (id)[pointPath CGPath];
529 pointPathAnimation.duration = 0.5f; 531 pointPathAnimation.duration = 0.5f;
530 pointPathAnimation.autoreverses = NO; 532 pointPathAnimation.autoreverses = NO;
@@ -75,7 +75,7 @@ @@ -75,7 +75,7 @@
75 75
76 76
77 // Line Chart #1 77 // Line Chart #1
78 - NSArray * data01Array = @[@30.1, @20.1, @106.4, @162.2, @86.2, @27.2, @76.2]; 78 + NSArray * data01Array = @[@30.1, @220.1, @106.4, @22.2, @136.2, @67.2, @36.2];
79 PNLineChartData *data01 = [PNLineChartData new]; 79 PNLineChartData *data01 = [PNLineChartData new];
80 data01.color = PNFreshGreen; 80 data01.color = PNFreshGreen;
81 data01.itemCount = data01Array.count; 81 data01.itemCount = data01Array.count;
@@ -86,7 +86,7 @@ @@ -86,7 +86,7 @@
86 }; 86 };
87 87
88 // Line Chart #2 88 // Line Chart #2
89 - NSArray * data02Array = @[@60.1, @120.1, @126.4, @102.2, @26.2, @67.2, @176.2]; 89 + NSArray * data02Array = @[@60.1, @120.1, @126.4, @102.2, @56.2, @87.2, @136.2];
90 PNLineChartData *data02 = [PNLineChartData new]; 90 PNLineChartData *data02 = [PNLineChartData new];
91 data02.color = PNTwitterColor; 91 data02.color = PNTwitterColor;
92 data02.itemCount = data02Array.count; 92 data02.itemCount = data02Array.count;