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
Edu Caselles
2015-11-13 13:52:08 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
Edu Caselles
2015-12-18 13:26:18 +0100
Commit
8da75908d13e389f201d66bd1fc6234bd1cca7d0
8da75908
1 parent
9ac26e45
Fixes misspelling.
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
PNChart/PNPieChart.m
PNChart/PNPieChart.m
View file @
8da7590
...
...
@@ -116,7 +116,7 @@
currentItem
=
[
self
dataItemForIndex
:
i
];
CGFloat
startPerc
ne
tage
=
[
self
startPercentageForItemAtIndex
:
i
];
CGFloat
startPerc
en
tage
=
[
self
startPercentageForItemAtIndex
:
i
];
CGFloat
endPercentage
=
[
self
endPercentageForItemAtIndex
:
i
];
CGFloat
radius
=
_innerCircleRadius
+
(
_outerCircleRadius
-
_innerCircleRadius
)
/
2
;
...
...
@@ -126,7 +126,7 @@
borderWidth
:
borderWidth
fillColor
:
[
UIColor
clearColor
]
borderColor
:
currentItem
.
color
startPercentage
:
startPerc
ne
tage
startPercentage
:
startPerc
en
tage
endPercentage
:
endPercentage
];
[
_pieLayer
addSublayer
:
currentPieLayer
];
}
...
...
@@ -338,14 +338,14 @@
alpha
/=
2
;
UIColor
*
newColor
=
[
UIColor
colorWithRed
:
red
green
:
green
blue
:
blue
alpha
:
alpha
];
CGFloat
startPerc
ne
tage
=
[
self
startPercentageForItemAtIndex
:
index
];
CGFloat
startPerc
en
tage
=
[
self
startPercentageForItemAtIndex
:
index
];
CGFloat
endPercentage
=
[
self
endPercentageForItemAtIndex
:
index
];
self
.
sectorHighlight
=
[
self
newCircleLayerWithRadius
:
_outerCircleRadius
+
5
borderWidth
:
10
fillColor
:
[
UIColor
clearColor
]
borderColor
:
newColor
startPercentage
:
startPerc
ne
tage
startPercentage
:
startPerc
en
tage
endPercentage
:
endPercentage
];
if
(
self
.
enableMultipleSelection
)
...
...
Please
register
or
login
to post a comment