Sergey Armodin

yLabelFormatter definition for PNBarChart

@@ -62,6 +62,10 @@ @@ -62,6 +62,10 @@
62 _showChartBorder = NO; 62 _showChartBorder = NO;
63 _yChartLabelWidth = 18; 63 _yChartLabelWidth = 18;
64 _rotateForXAxisText = false; 64 _rotateForXAxisText = false;
  65 +
  66 + yLabelFormatter = ^(CGFloat yValue){
  67 + return [NSString stringWithFormat:@"%1.f",yValue];
  68 + };
65 } 69 }
66 70
67 - (void)setYValues:(NSArray *)yValues 71 - (void)setYValues:(NSArray *)yValues