Added pie chart property to hide label under a user defined limit
I added this property because showing all labels, when there are a lot of small items in the dataset, is quite confusing. Example: piechart.labelPercentageCutoff = 0.05 hide all labels with value less than 5% (I use this most of the times).
Showing
1 changed file
with
3 additions
and
0 deletions
| @@ -38,6 +38,9 @@ | @@ -38,6 +38,9 @@ | ||
| 38 | /** Show absolute values not relative i.e. percentages */ | 38 | /** Show absolute values not relative i.e. percentages */ |
| 39 | @property (nonatomic) BOOL showAbsoluteValues; | 39 | @property (nonatomic) BOOL showAbsoluteValues; |
| 40 | 40 | ||
| 41 | +/** Hide percentage labels less than cutoff value */ | ||
| 42 | +@property (nonatomic, assign) CGFloat labelPercentageCutoff; | ||
| 43 | + | ||
| 41 | /** Default YES. */ | 44 | /** Default YES. */ |
| 42 | @property (nonatomic) BOOL shouldHighlightSectorOnTouch; | 45 | @property (nonatomic) BOOL shouldHighlightSectorOnTouch; |
| 43 | 46 |
-
Please register or login to post a comment