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
2015-08-24 11:57:00 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
6f9ff0377ff8f9fe3b828d2dde266a7f1c451b5b
6f9ff037
2 parents
8901cc38
0db8bfbc
Merge pull request #241 from NoICE/0.8.6-update-data
PieChart: add updateData() method
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 @
6f9ff03
...
...
@@ -52,6 +52,9 @@
@property
(
nonatomic
,
weak
)
id
<
PNChartDelegate
>
delegate
;
/** Update chart items. Does not update chart itself. */
-
(
void
)
updateChartData
:(
NSArray
*
)
data
;
-
(
void
)
strokeChart
;
-
(
void
)
recompute
;
...
...
PNChart/PNPieChart.m
View file @
6f9ff03
...
...
@@ -171,6 +171,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