diff --git a/ChartsDemo/Classes/Demos/BarChartViewController.m b/ChartsDemo/Classes/Demos/BarChartViewController.m index 64d5ee279e..d134a03dcd 100644 --- a/ChartsDemo/Classes/Demos/BarChartViewController.m +++ b/ChartsDemo/Classes/Demos/BarChartViewController.m @@ -138,9 +138,9 @@ - (void)setDataCount:(int)count range:(double)range double mult = (range + 1); double val = (double) (arc4random_uniform(mult)); if (arc4random_uniform(100) < 25) { - [yVals addObject:[[BarChartDataEntry alloc] initWithX:val y:i icon: [UIImage imageNamed:@"icon"]]]; + [yVals addObject:[[BarChartDataEntry alloc] initWithX:i y:val icon: [UIImage imageNamed:@"icon"]]]; } else { - [yVals addObject:[[BarChartDataEntry alloc] initWithX:val y:i]]; + [yVals addObject:[[BarChartDataEntry alloc] initWithX:i y:val]]; } }