| | |
| | | if (self = [super initWithFrame:frame]) { |
| | | self.backgroundColor = [UIColor colorWithRed:0.2 green:0.7 blue:0.2 alpha:0.3]; |
| | | _lineType = lineChartType; |
| | | _lineWidth = 0.5; |
| | | _lineWidth = 5; // 线条宽度 |
| | | self.contentInsets = UIEdgeInsetsMake(10, 20, 10, 10); |
| | | _yLineDataArr = @[@"1",@"2",@"3",@"4",@"5",@"6",@"7"]; |
| | | _xLineDataArr = @[@"0",@"1",@"2",@"3",@"4",@"5",@"6",@"7"]; |
| | |
| | | UIColor *color = (_valueLineColorArr.count==_drawDataArr.count?(_valueLineColorArr[colorIndex]):([UIColor orangeColor])); |
| | | shapeLayer.strokeColor = color.CGColor; |
| | | shapeLayer.fillColor = [UIColor clearColor].CGColor; |
| | | shapeLayer.lineWidth = (_animationPathWidth<=0?2:_animationPathWidth); |
| | | shapeLayer.lineWidth = [self lineWidth];// (_animationPathWidth<=0?5:_animationPathWidth); |
| | | |
| | | //第三,动画 |
| | | |