Skip to content

Commit

Permalink
Merge pull request #1452 from DashRobotics/Swift-2.3
Browse files Browse the repository at this point in the history
Fix bar layout bug, pie callback bug
  • Loading branch information
danielgindi authored Sep 19, 2016
2 parents ee51dba + 6e36b70 commit efbbae4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Charts/Classes/Charts/BarChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class BarChartView: BarLineChartViewBase, BarChartDataProvider
{
_xAxis.calculate(
min: data.xMin - data.barWidth / 2.0,
max: data.xMax - data.barWidth / 2.0)
max: data.xMax + data.barWidth / 2.0)
}
else
{
Expand Down Expand Up @@ -165,4 +165,4 @@ public class BarChartView: BarLineChartViewBase, BarChartDataProvider

/// - returns: `true` if drawing shadows (maxvalue) for each bar is enabled, `false` ifnot
public var isDrawBarShadowEnabled: Bool { return drawBarShadowEnabled }
}
}
4 changes: 2 additions & 2 deletions Charts/Classes/Charts/PieRadarChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ public class PieRadarChartViewBase: ChartViewBase
let location = recognizer.locationInView(self)

let high = self.getHighlightByTouchPoint(location)
self.highlightValue(high)
self.highlightValue(highlight: high, callDelegate: true)
}
}

Expand Down Expand Up @@ -873,4 +873,4 @@ public class PieRadarChartViewBase: ChartViewBase
}
}
#endif
}
}

0 comments on commit efbbae4

Please sign in to comment.