Showing
2 changed files
with
3 additions
and
3 deletions
| @@ -8,9 +8,9 @@ | @@ -8,9 +8,9 @@ | ||
| 8 | 8 | ||
| 9 | #import <UIKit/UIKit.h> | 9 | #import <UIKit/UIKit.h> |
| 10 | #import "PNColor.h" | 10 | #import "PNColor.h" |
| 11 | -#import "UICountingLabel.h" | 11 | +#import <UICountingLabel/UICountingLabel.h> |
| 12 | 12 | ||
| 13 | -typedef NS_ENUM(NSUInteger, PNChartFormatType) { | 13 | +typedef NS_ENUM (NSUInteger, PNChartFormatType) { |
| 14 | PNChartFormatTypePercent, | 14 | PNChartFormatTypePercent, |
| 15 | PNChartFormatTypeDollar, | 15 | PNChartFormatTypeDollar, |
| 16 | PNChartFormatTypeNone | 16 | PNChartFormatTypeNone |
| @@ -279,7 +279,7 @@ | @@ -279,7 +279,7 @@ | ||
| 279 | innerGrade = (yValue - _yValueMin) / (_yValueMax - _yValueMin); | 279 | innerGrade = (yValue - _yValueMin) / (_yValueMax - _yValueMin); |
| 280 | } | 280 | } |
| 281 | 281 | ||
| 282 | - CGFloat offSetX = (_chartCavanWidth - _xLabelWidth) / (chartData.itemCount - 1); | 282 | + CGFloat offSetX = (_chartCavanWidth) / (chartData.itemCount); |
| 283 | 283 | ||
| 284 | int x = 2 * _chartMargin + (i * offSetX); | 284 | int x = 2 * _chartMargin + (i * offSetX); |
| 285 | int y = _chartCavanHeight - (innerGrade * _chartCavanHeight) + (_yLabelHeight / 2); | 285 | int y = _chartCavanHeight - (innerGrade * _chartCavanHeight) + (_yLabelHeight / 2); |
-
Please register or login to post a comment