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
noice
2015-08-11 17:08:59 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0db8bfbce266f6af171a580daf2a8e2aa429cc52
0db8bfbc
1 parent
4f1b69a2
feat(PieChart): ability to change chart data
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
PNChart/PNPieChart.h
PNChart/PNPieChart.m
PNChart/PNPieChart.h
View file @
0db8bfb
...
...
@@ -46,6 +46,9 @@
@property
(
nonatomic
,
weak
)
id
<
PNChartDelegate
>
delegate
;
/** Update chart items. Does not update chart itself. */
-
(
void
)
updateChartData
:(
NSArray
*
)
data
;
-
(
void
)
strokeChart
;
@end
...
...
PNChart/PNPieChart.m
View file @
0db8bfb
...
...
@@ -169,6 +169,10 @@
return
descriptionLabel
;
}
-
(
void
)
updateChartData
:
(
NSArray
*
)
items
{
self
.
items
=
items
;
}
-
(
PNPieChartDataItem
*
)
dataItemForIndex
:
(
NSUInteger
)
index
{
return
self
.
items
[
index
];
}
...
...
Please
register
or
login
to post a comment