Antoine Gamond

Fix bug

... ... @@ -8,12 +8,12 @@
#import <UIKit/UIKit.h>
#import "PNColor.h"
#import "UICountingLabel.h"
#import <UICountingLabel/UICountingLabel.h>
typedef NS_ENUM(NSUInteger, PNChartFormatType) {
PNChartFormatTypePercent,
PNChartFormatTypeDollar,
PNChartFormatTypeNone
typedef NS_ENUM (NSUInteger, PNChartFormatType) {
PNChartFormatTypePercent,
PNChartFormatTypeDollar,
PNChartFormatTypeNone
};
#define DEGREES_TO_RADIANS(angle) ((angle) / 180.0 * M_PI)
... ...
... ... @@ -279,7 +279,7 @@
innerGrade = (yValue - _yValueMin) / (_yValueMax - _yValueMin);
}
CGFloat offSetX = (_chartCavanWidth - _xLabelWidth) / (chartData.itemCount - 1);
CGFloat offSetX = (_chartCavanWidth) / (chartData.itemCount);
int x = 2 * _chartMargin + (i * offSetX);
int y = _chartCavanHeight - (innerGrade * _chartCavanHeight) + (_yLabelHeight / 2);
... ...