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
Nenu Adrian
2015-03-02 19:25:56 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3ed8932e9646f413204eb52add66c4bee79bf4f8
3ed8932e
1 parent
3f666b10
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 @
3ed8932
...
...
@@ -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