Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
PNChart
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
klauslanza
2015-07-24 10:00:47 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
175dbfb6a611da82f2e62b7dd52f47e64b5cd63c
175dbfb6
1 parent
4f553b63
Added implementation to labelPercentageCutoff property.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
PNChart/PNPieChart.m
PNChart/PNPieChart.m
View file @
175dbfb
...
...
@@ -145,6 +145,12 @@
descriptionLabel
.
text
=
str
;
}
//If value is less than cutoff, show no label
if
([
self
ratioForItemAtIndex
:
index
]
<
self
.
labelPercentageCutoff
)
{
descriptionLabel
.
text
=
nil
;
}
CGPoint
center
=
CGPointMake
(
_outerCircleRadius
+
distance
*
sin
(
rad
),
_outerCircleRadius
-
distance
*
cos
(
rad
));
...
...
Please
register
or
login
to post a comment