From d755877b962bb98b66e5b3d4d317e60cfaf81ff4 Mon Sep 17 00:00:00 2001 From: zntfdr Date: Wed, 7 Oct 2015 22:12:55 +0800 Subject: [PATCH] fixed noDataText and NoDataTextDescription labels ovelapping issue --- Charts/Classes/Charts/ChartViewBase.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Charts/Classes/Charts/ChartViewBase.swift b/Charts/Classes/Charts/ChartViewBase.swift index 924f447b37..bb510fc9be 100755 --- a/Charts/Classes/Charts/ChartViewBase.swift +++ b/Charts/Classes/Charts/ChartViewBase.swift @@ -305,7 +305,7 @@ public class ChartViewBase: UIView, ChartAnimatorDelegate if (noDataTextDescription != nil && (noDataTextDescription!).characters.count > 0) { - let textOffset = -infoFont.lineHeight / 2.0 + let textOffset = infoFont.lineHeight ChartUtils.drawText(context: context, text: noDataTextDescription!, point: CGPoint(x: frame.width / 2.0, y: frame.height / 2.0 + textOffset), align: .Center, attributes: [NSFontAttributeName: infoFont, NSForegroundColorAttributeName: infoTextColor]) }