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-05-24 22:42:57 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5f4b96a7a4c3f9bfe5fd3ee7716561ea735969b3
5f4b96a7
1 parent
8cfac22c
Remove grade on linechart
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
PNChart/PNBar.m
PNChart/PNBarChart.m
PNChart/PNLineChart.m
PNChart/PNBar.m
View file @
5f4b96a
...
...
@@ -179,7 +179,7 @@
_textLayer
=
[[
CATextLayer
alloc
]
init
];
[
_textLayer
setString
:
@"0"
];
[
_textLayer
setAlignmentMode
:
kCAAlignmentCenter
];
[
_textLayer
setForegroundColor
:[[
UIColor
black
Color
]
CGColor
]];
[
_textLayer
setForegroundColor
:[[
UIColor
gray
Color
]
CGColor
]];
}
return
_textLayer
;
...
...
PNChart/PNBarChart.m
View file @
5f4b96a
...
...
@@ -62,7 +62,7 @@
_yChartLabelWidth
=
18
;
_rotateForXAxisText
=
false
;
yLabelFormatter
=
^
(
CGFloat
yValue
){
_
yLabelFormatter
=
^
(
CGFloat
yValue
){
return
[
NSString
stringWithFormat
:
@"%1.f"
,
yValue
];
};
}
...
...
PNChart/PNLineChart.m
View file @
5f4b96a
...
...
@@ -1006,6 +1006,7 @@
-
(
void
)
setGradeFrame
:
(
CATextLayer
*
)
textLayer
grade
:
(
CGFloat
)
grade
pointCenter
:
(
CGPoint
)
pointCenter
width
:
(
CGFloat
)
width
{
return
;
CGFloat
textheigt
=
width
*
3
;
CGFloat
textWidth
=
width
*
4
;
CGFloat
textStartPosY
;
...
...
Please
register
or
login
to post a comment