Skip to content

Commit

Permalink
Offset adjustment when drawLabels on the x axis is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpz-financial-com committed May 26, 2015
1 parent fa0b45a commit 9e4c2d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Charts/Classes/Charts/BarLineChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -374,11 +374,11 @@ public class BarLineChartViewBase: ChartViewBase, UIGestureRecognizerDelegate
{
offsetRight += rightAxis.requiredSize().width;
}

var xlabelheight = xAxis.labelHeight * 2.0;

if (xAxis.isEnabled)

if (xAxis.isEnabled && xAxis.isDrawLabelsEnabled)
{
var xlabelheight = xAxis.labelHeight * 2.0;

// offsets for x-labels
if (xAxis.labelPosition == .Bottom)
{
Expand Down

0 comments on commit 9e4c2d3

Please sign in to comment.