Skip to content

Commit ce81a88

Browse files
committed
Merge branch 'master' of https://github.com/kevinzhow/PNChart
2 parents c8be15d + ae8472c commit ce81a88

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: objective-c
2-
osx_image: xcode8.0
2+
osx_image: xcode9.1
33
before_install:
4-
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
4+
- gem install cocoapods -v '1.3.1' --no-rdoc --no-ri --no-document --quiet
55
- pod install
66
before_script:
77
- export LANG=en_US.UTF-8

PNChart/PNLineChart.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ - (void)setYLabels:(NSArray *)yLabels withHeight:(CGFloat)height {
145145

146146
NSInteger y = (NSInteger) (_chartCavanHeight + _chartMarginTop - index * yStepHeight);
147147

148-
PNChartLabel *label = [[PNChartLabel alloc] initWithFrame:CGRectMake(0.0, y, (CGFloat) ((NSInteger) _chartMarginLeft * 0.9), (NSInteger) _yLabelHeight)];
148+
PNChartLabel *label = [[PNChartLabel alloc] initWithFrame:CGRectMake(0.0, y - (NSInteger) _chartMarginBottom / 2, (CGFloat) ((NSInteger) _chartMarginLeft * 0.9), (NSInteger) _yLabelHeight)];
149149
[label setTextAlignment:NSTextAlignmentRight];
150150
label.text = labelText;
151151
[self setCustomStyleForYLabel:label];

PNChartDemo/Base.lproj/Main.storyboard

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
</view>
117117
<navigationItem key="navigationItem" title="PNChart" id="Ukg-Sg-E2z"/>
118118
<connections>
119+
<outlet property="animationsLabel" destination="lc1-oP-FNw" id="9Ij-Ku-pOt"/>
119120
<outlet property="animationsSwitch" destination="Mnm-Is-oih" id="haB-27-exI"/>
120121
<outlet property="centerSwitch" destination="kav-3r-blI" id="aDA-mR-FhR"/>
121122
<outlet property="centerSwitchLabel" destination="sMF-o9-dZX" id="Epf-8v-NeL"/>

PNChartDemo/PCChartViewController.h

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
@property (weak, nonatomic) IBOutlet UIButton *changeValueButton;
2727

2828
@property (weak, nonatomic) IBOutlet UISwitch *animationsSwitch;
29+
@property (weak, nonatomic) IBOutlet UILabel *animationsLabel;
2930
@property (weak, nonatomic) IBOutlet UISwitch *leftSwitch;
3031
@property (weak, nonatomic) IBOutlet UISwitch *centerSwitch;
3132
@property (weak, nonatomic) IBOutlet UISwitch *rightSwitch;

PNChartDemo/PCChartViewController.m

+1
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ - (void)viewDidLoad {
226226
self.changeValueButton.hidden = YES;
227227
} else if ([self.title isEqualToString:@"Scatter Chart"]) {
228228
self.animationsSwitch.hidden = YES;
229+
self.animationsLabel.hidden = YES;
229230

230231
self.titleLabel.text = @"Scatter Chart";
231232

Podfile.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
PODS:
2-
- Expecta (1.0.5)
2+
- Expecta (1.0.6)
33
- UICountingLabel (1.4.1)
44

55
DEPENDENCIES:
66
- Expecta
77
- UICountingLabel (~> 1.4.1)
88

99
SPEC CHECKSUMS:
10-
Expecta: e1c022fcd33910b6be89c291d2775b3fe27a89fe
10+
Expecta: 3b6bd90a64b9a1dcb0b70aa0e10a7f8f631667d5
1111
UICountingLabel: faf890b505d96312e324a86718f031fafffb0ccb
1212

1313
PODFILE CHECKSUM: de6be598c24bcfa6bcb5d22972adde29af718156
1414

15-
COCOAPODS: 1.3.1
15+
COCOAPODS: 1.3.1

0 commit comments

Comments
 (0)