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.
Merge pull request ChartsOrg#1 from zmchristensen/barchart-icon
Barchart Icons
- Loading branch information
Showing
10 changed files
with
263 additions
and
6 deletions.
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
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
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
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 |
---|---|---|
|
@@ -112,7 +112,9 @@ - (void)setDataCount:(int)count range:(double)range | |
{ | ||
double mult = (range + 1); | ||
double val = (double) (arc4random_uniform(mult)); | ||
[yVals addObject:[[BarChartDataEntry alloc] initWithValue:val xIndex:i]]; | ||
BarChartDataEntry *entry = [[BarChartDataEntry alloc] initWithValue:val xIndex:i]; | ||
entry.data = @"[email protected]"; | ||
[yVals addObject: entry]; | ||
} | ||
|
||
BarChartDataSet *set1 = [[BarChartDataSet alloc] initWithYVals:yVals label:@"DataSet"]; | ||
|
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,13 +103,19 @@ - (void)setDataCount:(int)count range:(double)range | |
for (int i = 0; i < count; i++) | ||
{ | ||
double val = (double) (arc4random_uniform(mult) + 3.0); | ||
[yVals1 addObject:[[BarChartDataEntry alloc] initWithValue:val xIndex:i]]; | ||
BarChartDataEntry *entry = [[BarChartDataEntry alloc] initWithValue:val xIndex:i]; | ||
entry.data = @"[email protected]"; | ||
[yVals1 addObject: entry]; | ||
|
||
val = (double) (arc4random_uniform(mult) + 3.0); | ||
[yVals2 addObject:[[BarChartDataEntry alloc] initWithValue:val xIndex:i]]; | ||
BarChartDataEntry *entry2 = [[BarChartDataEntry alloc] initWithValue:val xIndex:i]; | ||
entry2.data = @"[email protected]"; | ||
[yVals2 addObject: entry2]; | ||
|
||
val = (double) (arc4random_uniform(mult) + 3.0); | ||
[yVals3 addObject:[[BarChartDataEntry alloc] initWithValue:val xIndex:i]]; | ||
BarChartDataEntry *entry3 = [[BarChartDataEntry alloc] initWithValue:val xIndex:i]; | ||
entry3.data = @"[email protected]"; | ||
[yVals3 addObject: entry3]; | ||
} | ||
|
||
BarChartDataSet *set1 = [[BarChartDataSet alloc] initWithYVals:yVals1 label:@"Company A"]; | ||
|
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"]; | ||
|