@@ -95,7 +95,6 @@ export class RadarChartRenderer extends LineRadarRenderer {
95
95
const float32arr = this . mLineBuffer ;
96
96
let index = 0 ;
97
97
for ( let j = 0 ; j < dataSet . getEntryCount ( ) ; j ++ ) {
98
-
99
98
const e = dataSet . getEntryForIndex ( j ) ;
100
99
const yProperty = dataSet . yProperty ;
101
100
@@ -134,10 +133,9 @@ export class RadarChartRenderer extends LineRadarRenderer {
134
133
}
135
134
}
136
135
137
-
138
136
// draw the line (only if filled is disabled or alpha is below 255)
139
137
const lineWidth = dataSet . getLineWidth ( ) ;
140
- if ( ( ! dataSet . isDrawFilledEnabled ( ) || dataSet . getFillAlpha ( ) < 255 ) && lineWidth > 0 ) {
138
+ if ( ( ! dataSet . isDrawFilledEnabled ( ) || dataSet . getFillAlpha ( ) < 255 ) && lineWidth > 0 ) {
141
139
this . mRenderPaint . setColor ( dataSet . getColor ( ) ) ;
142
140
this . mRenderPaint . setStrokeWidth ( lineWidth ) ;
143
141
this . mRenderPaint . setStyle ( Style . STROKE ) ;
@@ -150,7 +148,7 @@ export class RadarChartRenderer extends LineRadarRenderer {
150
148
public drawValues ( c : Canvas ) {
151
149
const data = this . mChart . getData ( ) ;
152
150
const dataSets = data . getDataSets ( ) ;
153
- if ( dataSets . some ( d => d . isDrawValuesEnabled ( ) || d . isDrawIconsEnabled ( ) ) === false ) {
151
+ if ( dataSets . some ( ( d ) => d . isDrawValuesEnabled ( ) || d . isDrawIconsEnabled ( ) ) === false ) {
154
152
return ;
155
153
}
156
154
const phaseX = this . mAnimator . getPhaseX ( ) ;
@@ -196,15 +194,15 @@ export class RadarChartRenderer extends LineRadarRenderer {
196
194
this . drawValue ( c , formatter . getRadarLabel ( entry [ yProperty ] , entry ) , pOut . x , pOut . y - yoffset , dataSet . getValueTextColor ( j ) ) ;
197
195
}
198
196
199
- if ( drawIcons && entry . icon != null ) {
197
+ if ( drawIcons && entry . icon != null ) {
200
198
const icon = entry . icon ;
201
199
202
200
Utils . getPosition ( center , entry [ yProperty ] * factor * phaseY + iconsOffset . y , sliceangle * j * phaseX + this . mChart . getRotationAngle ( ) , pIcon ) ;
203
201
204
202
//noinspection SuspiciousNameCombination
205
203
pIcon . y += iconsOffset . x ;
206
204
207
- Utils . drawImage ( c , icon , pIcon . x , pIcon . y ) ;
205
+ Utils . drawIcon ( c , this . mChart , icon , pIcon . x , pIcon . y ) ;
208
206
}
209
207
}
210
208
0 commit comments