Showing
5 changed files
with
22 additions
and
21 deletions
| @@ -14,6 +14,6 @@ | @@ -14,6 +14,6 @@ | ||
| 14 | - (void)rollBack; | 14 | - (void)rollBack; |
| 15 | 15 | ||
| 16 | @property (nonatomic) float grade; | 16 | @property (nonatomic) float grade; |
| 17 | -@property (nonatomic, strong) CAShapeLayer *chartLine; | 17 | +@property (nonatomic) CAShapeLayer *chartLine; |
| 18 | -@property (nonatomic, strong) UIColor *barColor; | 18 | +@property (nonatomic) UIColor *barColor; |
| 19 | @end | 19 | @end |
| @@ -22,13 +22,14 @@ | @@ -22,13 +22,14 @@ | ||
| 22 | 22 | ||
| 23 | - (void)strokeChart; | 23 | - (void)strokeChart; |
| 24 | 24 | ||
| 25 | -@property (strong, nonatomic) NSArray *xLabels; | 25 | +@property (nonatomic) NSArray *xLabels; |
| 26 | -@property (strong, nonatomic) NSArray *yLabels; | 26 | +@property (nonatomic) NSArray *yLabels; |
| 27 | -@property (strong, nonatomic) NSArray *yValues; | 27 | +@property (nonatomic) NSArray *yValues; |
| 28 | @property (nonatomic) CGFloat xLabelWidth; | 28 | @property (nonatomic) CGFloat xLabelWidth; |
| 29 | @property (nonatomic) int yValueMax; | 29 | @property (nonatomic) int yValueMax; |
| 30 | -@property (nonatomic, strong) UIColor *strokeColor; | 30 | +@property (nonatomic) UIColor *strokeColor; |
| 31 | -@property (nonatomic, strong) NSArray *strokeColors; | 31 | +@property (nonatomic) NSArray *strokeColors; |
| 32 | -@property (nonatomic, strong) UIColor *barBackgroundColor; | 32 | +@property (nonatomic) UIColor *barBackgroundColor; |
| 33 | @property (nonatomic) BOOL showLabel; | 33 | @property (nonatomic) BOOL showLabel; |
| 34 | + | ||
| 34 | @end | 35 | @end |
| @@ -17,14 +17,14 @@ | @@ -17,14 +17,14 @@ | ||
| 17 | - (void)strokeChart; | 17 | - (void)strokeChart; |
| 18 | - (id)initWithFrame:(CGRect)frame andTotal:(NSNumber *)total andCurrent:(NSNumber *)current andClockwise:(BOOL)clockwise; | 18 | - (id)initWithFrame:(CGRect)frame andTotal:(NSNumber *)total andCurrent:(NSNumber *)current andClockwise:(BOOL)clockwise; |
| 19 | 19 | ||
| 20 | -@property (nonatomic, strong) UIColor *strokeColor; | 20 | +@property (nonatomic) UIColor *strokeColor; |
| 21 | -@property (nonatomic, strong) UIColor *labelColor; | 21 | +@property (nonatomic) UIColor *labelColor; |
| 22 | -@property (nonatomic, strong) NSNumber *total; | 22 | +@property (nonatomic) NSNumber *total; |
| 23 | -@property (nonatomic, strong) NSNumber *current; | 23 | +@property (nonatomic) NSNumber *current; |
| 24 | -@property (nonatomic, strong) NSNumber *lineWidth; | 24 | +@property (nonatomic) NSNumber *lineWidth; |
| 25 | @property (nonatomic) BOOL clockwise; | 25 | @property (nonatomic) BOOL clockwise; |
| 26 | 26 | ||
| 27 | -@property (nonatomic, strong) CAShapeLayer *circle; | 27 | +@property (nonatomic) CAShapeLayer *circle; |
| 28 | -@property (nonatomic, strong) CAShapeLayer *circleBG; | 28 | +@property (nonatomic) CAShapeLayer *circleBG; |
| 29 | 29 | ||
| 30 | @end | 30 | @end |
| @@ -21,16 +21,16 @@ | @@ -21,16 +21,16 @@ | ||
| 21 | 21 | ||
| 22 | @property (nonatomic, retain) id<PNChartDelegate> delegate; | 22 | @property (nonatomic, retain) id<PNChartDelegate> delegate; |
| 23 | 23 | ||
| 24 | -@property (strong, nonatomic) NSArray *xLabels; | 24 | +@property (nonatomic) NSArray *xLabels; |
| 25 | 25 | ||
| 26 | -@property (strong, nonatomic) NSArray *yLabels; | 26 | +@property (nonatomic) NSArray *yLabels; |
| 27 | 27 | ||
| 28 | /** | 28 | /** |
| 29 | * Array of `LineChartData` objects, one for each line. | 29 | * Array of `LineChartData` objects, one for each line. |
| 30 | */ | 30 | */ |
| 31 | -@property (strong, nonatomic) NSArray *chartData; | 31 | +@property (nonatomic) NSArray *chartData; |
| 32 | 32 | ||
| 33 | -@property (strong, nonatomic) NSMutableArray *pathPoints; | 33 | +@property (nonatomic) NSMutableArray *pathPoints; |
| 34 | 34 | ||
| 35 | @property (nonatomic) CGFloat xLabelWidth; | 35 | @property (nonatomic) CGFloat xLabelWidth; |
| 36 | 36 |
| @@ -18,9 +18,9 @@ | @@ -18,9 +18,9 @@ | ||
| 18 | //------------------------------------------------------------------------------------------------ | 18 | //------------------------------------------------------------------------------------------------ |
| 19 | @interface PNLineChart () | 19 | @interface PNLineChart () |
| 20 | 20 | ||
| 21 | -@property (nonatomic, strong) NSMutableArray *chartLineArray; // Array[CAShapeLayer] | 21 | +@property (nonatomic) NSMutableArray *chartLineArray; // Array[CAShapeLayer] |
| 22 | 22 | ||
| 23 | -@property (strong, nonatomic) NSMutableArray *chartPath; //Array of line path, one for each line. | 23 | +@property (nonatomic) NSMutableArray *chartPath; //Array of line path, one for each line. |
| 24 | 24 | ||
| 25 | - (void)setDefaultValues; | 25 | - (void)setDefaultValues; |
| 26 | 26 |
-
Please register or login to post a comment