单军华
2017-02-22 8e680a1593ca22c8d3fb8a79180f06df4c4ca681
JHChart/JHChartDemo/JHChart/JHLineChart.m
@@ -40,7 +40,7 @@
    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"];
@@ -891,7 +891,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);
    
    //第三,动画