Kevin

Merge pull request #132 from MrWooJ/fixing-Issue#104

Fixing Issue #104
... ... @@ -125,12 +125,12 @@
if (labelAddCount == _xLabelSkip) {
NSString *labelText = [_xLabels[index] description];
PNChartLabel * label = [[PNChartLabel alloc] initWithFrame:CGRectZero];
PNChartLabel * label = [[PNChartLabel alloc] initWithFrame:CGRectMake(0, 0, _xLabelWidth, xLabelHeight)];
label.font = _labelFont;
label.textColor = _labelTextColor;
[label setTextAlignment:NSTextAlignmentCenter];
label.text = labelText;
[label sizeToFit];
//[label sizeToFit];
CGFloat labelXPosition;
if (_rotateForXAxisText){
label.transform = CGAffineTransformMakeRotation(M_PI / 4);
... ...
... ... @@ -19,8 +19,11 @@
self.backgroundColor = [UIColor clearColor];
self.textAlignment = NSTextAlignmentCenter;
self.userInteractionEnabled = YES;
self.minimumScaleFactor = 0.8;
self.adjustsFontSizeToFitWidth = YES;
self.numberOfLines = 0;
/* if you want to see ... in large labels un-comment this line
self.minimumScaleFactor = 0.8;
*/
}
return self;
... ...