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
andi
2015-03-03 09:33:16 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b6893533656b1ee835232012428f9d2a909d07e1
b6893533
1 parent
596f47fc
merge latest upstream changes
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
PNChart/PNPieChart.m
PNChart/PNPieChart.m
View file @
b689353
...
...
@@ -132,7 +132,7 @@
if
(
self
.
showAbsoluteValues
)
{
titleValue
=
[
NSString
stringWithFormat
:
@"%.0f"
,
currentDataItem
.
value
];
}
else
{
titleValue
=
[
NSString
stringWithFormat
:
@"%.0f%%"
,
currentDataItem
.
value
/
_total
*
100
];
titleValue
=
[
NSString
stringWithFormat
:
@"%.0f%%"
,
[
self
ratioForItemAtIndex
:
index
]
*
100
];
}
if
(
!
titleText
||
self
.
showOnlyValues
){
descriptionLabel
.
text
=
titleValue
;
...
...
@@ -141,7 +141,6 @@
NSString
*
str
=
[
titleValue
stringByAppendingString
:[
NSString
stringWithFormat
:
@"
\n
%@"
,
titleText
]];
descriptionLabel
.
text
=
str
;
}
descriptionLabel
.
text
=
titleText
;
CGPoint
center
=
CGPointMake
(
_outerCircleRadius
+
distance
*
sin
(
rad
),
_outerCircleRadius
-
distance
*
cos
(
rad
));
...
...
Please
register
or
login
to post a comment