Skip to content

Commit

Permalink
Merge pull request #457 from zntfdr/master
Browse files Browse the repository at this point in the history
fixed noDataText and NoDataTextDescription texts ovelapping issue
  • Loading branch information
pmairoldi committed Oct 13, 2015
2 parents 36f67bc + d755877 commit aa8a1bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Charts/Classes/Charts/ChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}
Expand Down

0 comments on commit aa8a1bc

Please sign in to comment.