- Fix for issue: https://github.com/kevinzhow/PNChart/issues/198
Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -409,7 +409,7 @@ | @@ -409,7 +409,7 @@ | ||
| 409 | if (!(_yValueMax - _yValueMin)) { | 409 | if (!(_yValueMax - _yValueMin)) { |
| 410 | innerGrade = 0.5; | 410 | innerGrade = 0.5; |
| 411 | } else { | 411 | } else { |
| 412 | - innerGrade = (yValue - _yValueMin) / (_yValueMax - _yValueMin) == 0 ? 0.5 : (yValue - _yValueMin) / (_yValueMax - _yValueMin); | 412 | + innerGrade = (yValue - _yValueMin) / (_yValueMax - _yValueMin); |
| 413 | } | 413 | } |
| 414 | 414 | ||
| 415 | CGFloat offSetX = (_chartCavanWidth) / (chartData.itemCount); | 415 | CGFloat offSetX = (_chartCavanWidth) / (chartData.itemCount); |
-
Please register or login to post a comment