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
Kevin
2014-12-19 09:40:26 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
815f5f98270066e59fa000ded6a38ab535e4bc8c
815f5f98
2 parents
a3983eaa
8346f687
Merge pull request #132 from MrWooJ/fixing-Issue#104
Fixing Issue #104
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
PNChart/PNBarChart.m
PNChart/PNChartLabel.m
PNChart/PNBarChart.m
View file @
815f5f9
...
...
@@ -125,12 +125,12 @@
if
(
labelAddCount
==
_xLabelSkip
)
{
NSString
*
labelText
=
[
_xLabels
[
index
]
description
];
PNChartLabel
*
label
=
[[
PNChartLabel
alloc
]
initWithFrame
:
CGRect
Zero
];
PNChartLabel
*
label
=
[[
PNChartLabel
alloc
]
initWithFrame
:
CGRect
Make
(
0
,
0
,
_xLabelWidth
,
xLabelHeight
)
];
label
.
font
=
_labelFont
;
label
.
textColor
=
_labelTextColor
;
[
label
setTextAlignment
:
NSTextAlignmentCenter
];
label
.
text
=
labelText
;
[
label
sizeToFit
];
//
[label sizeToFit];
CGFloat
labelXPosition
;
if
(
_rotateForXAxisText
){
label
.
transform
=
CGAffineTransformMakeRotation
(
M_PI
/
4
);
...
...
PNChart/PNChartLabel.m
View file @
815f5f9
...
...
@@ -19,8 +19,11 @@
self
.
backgroundColor
=
[
UIColor
clearColor
];
self
.
textAlignment
=
NSTextAlignmentCenter
;
self
.
userInteractionEnabled
=
YES
;
self
.
minimumScaleFactor
=
0
.
8
;
self
.
adjustsFontSizeToFitWidth
=
YES
;
self
.
numberOfLines
=
0
;
/* if you want to see ... in large labels un-comment this line
self.minimumScaleFactor = 0.8;
*/
}
return
self
;
...
...
Please
register
or
login
to post a comment