Showing
1 changed file
with
1 additions
and
2 deletions
| @@ -132,7 +132,7 @@ | @@ -132,7 +132,7 @@ | ||
| 132 | if (self.showAbsoluteValues) { | 132 | if (self.showAbsoluteValues) { |
| 133 | titleValue = [NSString stringWithFormat:@"%.0f",currentDataItem.value]; | 133 | titleValue = [NSString stringWithFormat:@"%.0f",currentDataItem.value]; |
| 134 | }else{ | 134 | }else{ |
| 135 | - titleValue = [NSString stringWithFormat:@"%.0f%%",currentDataItem.value/ _total * 100]; | 135 | + titleValue = [NSString stringWithFormat:@"%.0f%%",[self ratioForItemAtIndex:index] * 100]; |
| 136 | } | 136 | } |
| 137 | if(!titleText || self.showOnlyValues){ | 137 | if(!titleText || self.showOnlyValues){ |
| 138 | descriptionLabel.text = titleValue; | 138 | descriptionLabel.text = titleValue; |
| @@ -141,7 +141,6 @@ | @@ -141,7 +141,6 @@ | ||
| 141 | NSString* str = [titleValue stringByAppendingString:[NSString stringWithFormat:@"\n%@",titleText]]; | 141 | NSString* str = [titleValue stringByAppendingString:[NSString stringWithFormat:@"\n%@",titleText]]; |
| 142 | descriptionLabel.text = str ; | 142 | descriptionLabel.text = str ; |
| 143 | } | 143 | } |
| 144 | - descriptionLabel.text = titleText; | ||
| 145 | 144 | ||
| 146 | CGPoint center = CGPointMake(_outerCircleRadius + distance * sin(rad), | 145 | CGPoint center = CGPointMake(_outerCircleRadius + distance * sin(rad), |
| 147 | _outerCircleRadius - distance * cos(rad)); | 146 | _outerCircleRadius - distance * cos(rad)); |
-
Please register or login to post a comment