Showing
1 changed file
with
6 additions
and
0 deletions
| @@ -145,6 +145,12 @@ | @@ -145,6 +145,12 @@ | ||
| 145 | descriptionLabel.text = str ; | 145 | descriptionLabel.text = str ; |
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | + //If value is less than cutoff, show no label | ||
| 149 | + if ([self ratioForItemAtIndex:index] < self.labelPercentageCutoff ) | ||
| 150 | + { | ||
| 151 | + descriptionLabel.text = nil; | ||
| 152 | + } | ||
| 153 | + | ||
| 148 | CGPoint center = CGPointMake(_outerCircleRadius + distance * sin(rad), | 154 | CGPoint center = CGPointMake(_outerCircleRadius + distance * sin(rad), |
| 149 | _outerCircleRadius - distance * cos(rad)); | 155 | _outerCircleRadius - distance * cos(rad)); |
| 150 | 156 |
-
Please register or login to post a comment