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
2015-03-03 15:37:19 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
9db3ed1814765ec303fd5f2c3e9d5d28fea7ecb2
9db3ed18
2 parents
ca3628ce
3ed8932e
Merge pull request #167 from nenuadrian/patch-2
Update PNLineChart.m
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
PNChart/PNLineChart.m
PNChart/PNLineChart.m
View file @
9db3ed1
...
...
@@ -101,6 +101,20 @@
}
}
-
(
CGFloat
)
computeEqualWidthForXLabels
:(
NSArray
*
)
xLabels
{
CGFloat
xLabelWidth
;
if
(
_showLabel
)
{
xLabelWidth
=
_chartCavanWidth
/
[
xLabels
count
];
}
else
{
xLabelWidth
=
(
self
.
frame
.
size
.
width
)
/
[
xLabels
count
];
}
return
xLabelWidth
;
}
-
(
void
)
setXLabels
:(
NSArray
*
)
xLabels
{
CGFloat
xLabelWidth
;
...
...
Please
register
or
login
to post a comment