File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -123,14 +123,8 @@ - (void)strokeChart
123
123
label.textColor = _labelTextColor;
124
124
[label setTextAlignment: NSTextAlignmentCenter];
125
125
label.text = labelText;
126
- NSLog (@" Label text is %@ " ,labelText);
127
126
[label sizeToFit ];
128
- CGFloat labelXPosition;
129
- if (label.frame .size .width < _xLabelWidth) {
130
- labelXPosition = (index * _xLabelWidth + _chartMargin + _xLabelWidth /2.0 );
131
- }else {
132
- labelXPosition = (index * _xLabelWidth + _chartMargin + label.frame .size .width /2.0 );
133
- }
127
+ CGFloat labelXPosition = (index * _xLabelWidth + _chartMargin + _xLabelWidth /2.0 );
134
128
135
129
label.center = CGPointMake (labelXPosition,
136
130
self.frame .size .height - xLabelHeight - _chartMargin + label.frame .size .height /2.0 + _labelMarginTop);
You can’t perform that action at this time.
0 commit comments