Kevin

Merge pull request #95 from Antoine4011/custom-style

Label customization in PNLineChart
Pod::Spec.new do |s|
s.name = "PNChart"
s.version = "0.2.2"
s.version = "0.6.0"
s.summary = "A simple and beautiful chart lib with animation used in Piner for iOS"
s.homepage = "https://github.com/kevinzhow/PNChart"
... ...
... ... @@ -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)
... ...
... ... @@ -33,6 +33,10 @@
@property (nonatomic) CGFloat xLabelWidth;
@property (nonatomic) UIFont *xLabelFont;
@property (nonatomic) UIColor *xLabelColor;
@property (nonatomic) CGFloat yValueMax;
@property (nonatomic) CGFloat yValueMin;
... ... @@ -41,6 +45,10 @@
@property (nonatomic) CGFloat yLabelHeight;
@property (nonatomic) UIFont *yLabelFont;
@property (nonatomic) UIColor *yLabelColor;
@property (nonatomic) CGFloat chartCavanHeight;
@property (nonatomic) CGFloat chartCavanWidth;
... ... @@ -49,7 +57,6 @@
@property (nonatomic) BOOL showLabel;
/**
* show CoordinateAxis ornot, Default is not
*/
... ... @@ -65,4 +72,6 @@
*/
@property (nonatomic, strong) NSString *yLabelFormat;
- (void)setXLabels:(NSArray *)xLabels withWidth:(CGFloat)width;
@end
... ...
This diff is collapsed. Click to expand it.
... ... @@ -7,4 +7,4 @@ DEPENDENCIES:
SPEC CHECKSUMS:
UICountingLabel: 0a0e9e34bf4690dbd127aaec552d19ed938087a9
COCOAPODS: 0.32.1
COCOAPODS: 0.33.1
... ...