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
dullgrass
2015-05-15 14:26:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dbfb664980ed9ee2cc4e9ae21c5790d08defd7b8
dbfb6649
1 parent
6025d272
Optimize
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
PNChart/PNBarChart.m
PNChart/PNBarChart.m
View file @
dbfb664
...
...
@@ -10,8 +10,6 @@
#import "PNColor.h"
#import "PNChartLabel.h"
#define defaultYSum 0 //默认的Y显示值的个数,
@interface
PNBarChart
()
{
NSMutableArray
*
_xChartLabels
;
NSMutableArray
*
_yChartLabels
;
...
...
@@ -87,8 +85,8 @@
}
else
{
[
self
getYValueMax
:
yAxisValues
];
}
if
(
_yLabelSum
==
defaultYSum
)
{
if
(
_yLabelSum
==
4
)
{
_yLabelSum
=
yAxisValues
.
count
;
(
_yLabelSum
%
2
==
0
)
?
_yLabelSum
:
_yLabelSum
++
;
}
...
...
Please
register
or
login
to post a comment