@@ -173,6 +173,8 @@ export class LineChartRenderer extends LineRadarRenderer {
173
173
if ( dataSet . getEntryCount ( ) < 1 ) return false ;
174
174
this . mRenderPaint . setStrokeWidth ( dataSet . getLineWidth ( ) ) ;
175
175
this . mRenderPaint . setPathEffect ( dataSet . getDashPathEffect ( ) ) ;
176
+ this . mRenderPaint . setColor ( dataSet . getColor ( ) ) ;
177
+ this . mRenderPaint . setStyle ( Style . STROKE ) ;
176
178
let result = false ;
177
179
switch ( dataSet . getMode ( ) ) {
178
180
default :
@@ -390,15 +392,10 @@ export class LineChartRenderer extends LineRadarRenderer {
390
392
// result = true;
391
393
}
392
394
393
- this . mRenderPaint . setColor ( dataSet . getColor ( ) ) ;
394
-
395
- this . mRenderPaint . setStyle ( Style . STROKE ) ;
396
-
397
395
trans . pathValueToPixel ( this . linePath ) ;
398
396
399
397
this . drawPath ( c , this . linePath , this . mRenderPaint ) ;
400
398
401
- this . mRenderPaint . setPathEffect ( null ) ;
402
399
return result ;
403
400
}
404
401
@@ -420,15 +417,11 @@ export class LineChartRenderer extends LineRadarRenderer {
420
417
// result = true;
421
418
}
422
419
423
- this . mRenderPaint . setColor ( dataSet . getColor ( ) ) ;
424
-
425
- this . mRenderPaint . setStyle ( Style . STROKE ) ;
426
420
427
421
trans . pathValueToPixel ( this . linePath ) ;
428
422
429
423
this . drawPath ( c , this . linePath , this . mRenderPaint ) ;
430
424
431
- this . mRenderPaint . setPathEffect ( null ) ;
432
425
return result ;
433
426
}
434
427
@@ -450,10 +443,6 @@ export class LineChartRenderer extends LineRadarRenderer {
450
443
// result = true;
451
444
}
452
445
453
- this . mRenderPaint . setColor ( dataSet . getColor ( ) ) ;
454
-
455
- this . mRenderPaint . setStyle ( Style . STROKE ) ;
456
-
457
446
if ( isAndroid ) {
458
447
trans . pathValueToPixel ( this . linePath ) ;
459
448
this . drawPath ( c , this . linePath , this . mRenderPaint ) ;
@@ -463,7 +452,6 @@ export class LineChartRenderer extends LineRadarRenderer {
463
452
c . drawLines ( points , 0 , length , this . mRenderPaint , trans . getValueToPixelMatrix ( ) ) ;
464
453
}
465
454
466
- this . mRenderPaint . setPathEffect ( null ) ;
467
455
return result ;
468
456
}
469
457
0 commit comments