forked from ChartsOrg/Charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for icons on the stacked bar chart.
- Loading branch information
1 parent
22ecf47
commit 0b8e7d1
Showing
2 changed files
with
104 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,9 @@ - (void)setDataCount:(int)count range:(double)range | |
double val2 = (double) (arc4random_uniform(mult) + mult / 3); | ||
double val3 = (double) (arc4random_uniform(mult) + mult / 3); | ||
|
||
[yVals addObject:[[BarChartDataEntry alloc] initWithValues:@[@(val1), @(val2), @(val3)] xIndex:i]]; | ||
BarChartDataEntry *entry = [[BarChartDataEntry alloc] initWithValues:@[@(val1), @(val2), @(val3)] xIndex:i]; | ||
entry.data = [NSArray arrayWithObjects: @"[email protected]", @"[email protected]", @"[email protected]", nil]; | ||
[yVals addObject: entry]; | ||
} | ||
|
||
BarChartDataSet *set1 = [[BarChartDataSet alloc] initWithYVals:yVals label:@"Statistics Vienna 2014"]; | ||
|