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-28 16:31:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3da9b7f881b6c8ec234cfa8b59e164fa3e2fec6c
3da9b7f8
1 parent
fa4e02c8
add show negative number barChart
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
PNChart/PNBarChart.m
PNChart/PNBarChart.m
View file @
3da9b7f
...
...
@@ -252,15 +252,14 @@
}
bar
.
grade
=
grade
;
CGRect
originalFrame
=
bar
.
frame
;
if
(
value
<
0
)
{
if
(
value
<
0
&&
self
.
showLevelLine
)
{
CGAffineTransform
transform
=
CGAffineTransformMakeRotation
(
M_PI
);
[
bar
setTransform
:
transform
];
originalFrame
.
origin
.
y
=
bar
.
frame
.
origin
.
y
+
bar
.
frame
.
size
.
height
;
bar
.
frame
=
originalFrame
;
bar
.
isNegative
=
YES
;
}
}
index
+=
1
;
}
}
...
...
Please
register
or
login
to post a comment