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
kevinzhow
2015-06-05 12:30:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e8aeb46ab1ddb715ad356d2ebd44c2f300037102
e8aeb46a
1 parent
03842796
Disable textLayer
Too ugly that I can not stand with.
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
PNChart/PNLineChart.m
PNChartDemo/PCChartViewController.m
PNChart/PNLineChart.m
View file @
e8aeb46
...
...
@@ -427,9 +427,9 @@
[
pointPath
addArcWithCenter
:
circleCenter
radius
:
inflexionWidth
/
2
startAngle
:
0
endAngle
:
2
*
M_PI
clockwise
:
YES
];
//jet text display text
CATextLayer
*
textLayer
=
[
self
createTextLayer
];
[
self
setGradeFrame
:
textLayer
grade
:
yValue
pointCenter
:
circleCenter
width
:
inflexionWidth
];
[
gradePathArray
addObject
:
textLayer
];
//
CATextLayer* textLayer = [self createTextLayer];
//
[self setGradeFrame:textLayer grade:yValue pointCenter:circleCenter width:inflexionWidth];
//
[gradePathArray addObject:textLayer];
if
(
i
!=
0
)
{
...
...
@@ -501,9 +501,9 @@
[
pointPath
closePath
];
// text display text
CATextLayer
*
textLayer
=
[
self
createTextLayer
];
[
self
setGradeFrame
:
textLayer
grade
:
yValue
pointCenter
:
middlePoint
width
:
inflexionWidth
];
[
gradePathArray
addObject
:
textLayer
];
//
CATextLayer* textLayer = [self createTextLayer];
//
[self setGradeFrame:textLayer grade:yValue pointCenter:middlePoint width:inflexionWidth];
//
[gradePathArray addObject:textLayer];
if
(
i
!=
0
)
{
// calculate the point for triangle
...
...
@@ -1013,7 +1013,7 @@
-
(
void
)
setGradeFrame
:
(
CATextLayer
*
)
textLayer
grade
:
(
CGFloat
)
grade
pointCenter
:
(
CGPoint
)
pointCenter
width
:
(
CGFloat
)
width
{
CGFloat
textheigt
=
width
*
3
;
CGFloat
textWidth
=
width
*
4
;
CGFloat
textWidth
=
width
*
8
;
CGFloat
textStartPosY
;
if
(
pointCenter
.
y
>
textheigt
)
{
...
...
PNChartDemo/PCChartViewController.m
View file @
e8aeb46
...
...
@@ -64,7 +64,7 @@
// Line Chart #2
NSArray
*
data02Array
=
@[
@0.0
,
@180.1
,
@26.4
,
@202.2
,
@126.2
,
@167.2
,
@276.2
];
PNLineChartData
*
data02
=
[
PNLineChartData
new
];
data02
.
dataTitle
=
@"Beta
Beta Beta Beta
"
;
data02
.
dataTitle
=
@"Beta"
;
data02
.
color
=
PNTwitterColor
;
data02
.
alpha
=
0
.
5
f
;
data02
.
itemCount
=
data02Array
.
count
;
...
...
Please
register
or
login
to post a comment