Showing
2 changed files
with
7 additions
and
0 deletions
| @@ -46,6 +46,9 @@ | @@ -46,6 +46,9 @@ | ||
| 46 | 46 | ||
| 47 | @property (nonatomic, weak) id<PNChartDelegate> delegate; | 47 | @property (nonatomic, weak) id<PNChartDelegate> delegate; |
| 48 | 48 | ||
| 49 | +/** Update chart items. Does not update chart itself. */ | ||
| 50 | +- (void)updateChartData:(NSArray *)data; | ||
| 51 | + | ||
| 49 | - (void)strokeChart; | 52 | - (void)strokeChart; |
| 50 | 53 | ||
| 51 | @end | 54 | @end |
| @@ -169,6 +169,10 @@ | @@ -169,6 +169,10 @@ | ||
| 169 | return descriptionLabel; | 169 | return descriptionLabel; |
| 170 | } | 170 | } |
| 171 | 171 | ||
| 172 | +- (void)updateChartData:(NSArray *)items { | ||
| 173 | + self.items = items; | ||
| 174 | +} | ||
| 175 | + | ||
| 172 | - (PNPieChartDataItem *)dataItemForIndex:(NSUInteger)index{ | 176 | - (PNPieChartDataItem *)dataItemForIndex:(NSUInteger)index{ |
| 173 | return self.items[index]; | 177 | return self.items[index]; |
| 174 | } | 178 | } |
-
Please register or login to post a comment