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
Oleg Anghelov
2014-02-19 15:39:31 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f2b1472430d86e6e1cf40fed6f4cea2b4c1e2260
f2b14724
1 parent
065112db
adding views to corresponding arrays
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
PNChart/PNBarChart.m
PNChart/PNBarChart.m
View file @
f2b1472
...
...
@@ -80,6 +80,7 @@
PNChartLabel
*
label
=
[[
PNChartLabel
alloc
]
initWithFrame
:
CGRectMake
((
index
*
_xLabelWidth
+
chartMargin
),
self
.
frame
.
size
.
height
-
30
.
0
,
_xLabelWidth
,
20
.
0
)];
[
label
setTextAlignment
:
NSTextAlignmentCenter
];
label
.
text
=
labelText
;
[
_labels
addObject
:
label
];
[
self
addSubview
:
label
];
}
}
...
...
@@ -110,6 +111,7 @@
bar
.
backgroundColor
=
_barBackgroundColor
;
bar
.
barColor
=
[
self
barColorAtIndex
:
index
];
bar
.
grade
=
grade
;
[
_bars
addObject
:
bar
];
[
self
addSubview
:
bar
];
index
+=
1
;
...
...
Please
register
or
login
to post a comment