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-02-26 04:02:05 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
06fef6a442e8ce60cf6bfdf10507d36cb5c9d23b
06fef6a4
2 parents
1b1a7b5e
6358b436
Merge pull request #39 from pala/patch-1
empty lines and indentation
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
PNChart/PNBarChart.m
PNChart/PNBarChart.m
View file @
06fef6a
...
...
@@ -62,8 +62,6 @@
}
_yValueMax
=
(
int
)
max
;
}
-
(
void
)
setXLabels
:(
NSArray
*
)
xLabels
...
...
@@ -84,7 +82,6 @@
[
self
addSubview
:
label
];
}
}
}
-
(
void
)
setStrokeColor
:(
UIColor
*
)
strokeColor
...
...
@@ -102,7 +99,7 @@
float
value
=
[
valueString
floatValue
];
float
grade
=
(
float
)
value
/
(
float
)
_yValueMax
;
PNBar
*
bar
;
PNBar
*
bar
;
if
(
_showLabel
)
{
bar
=
[[
PNBar
alloc
]
initWithFrame
:
CGRectMake
((
index
*
_xLabelWidth
+
chartMargin
+
_xLabelWidth
*
0
.
25
),
self
.
frame
.
size
.
height
-
chartCavanHeight
-
30
.
0
,
_xLabelWidth
*
0
.
5
,
chartCavanHeight
)];
}
else
{
...
...
@@ -137,4 +134,4 @@
}
}
@end
\ No newline at end of file
@end
...
...
Please
register
or
login
to post a comment