From ebb3e6b08d8d14afdaf95846d9ea2778e16c9052 Mon Sep 17 00:00:00 2001 From: Xuan Liu Date: Tue, 20 Sep 2016 09:35:44 +0800 Subject: [PATCH] porting #1452 into master --- Source/Charts/Charts/BarChartView.swift | 2 +- Source/Charts/Charts/PieRadarChartViewBase.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Charts/Charts/BarChartView.swift b/Source/Charts/Charts/BarChartView.swift index c4d998e6fd..f327e594cc 100644 --- a/Source/Charts/Charts/BarChartView.swift +++ b/Source/Charts/Charts/BarChartView.swift @@ -39,7 +39,7 @@ open 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 { diff --git a/Source/Charts/Charts/PieRadarChartViewBase.swift b/Source/Charts/Charts/PieRadarChartViewBase.swift index aae6a551e4..8dd7227a99 100755 --- a/Source/Charts/Charts/PieRadarChartViewBase.swift +++ b/Source/Charts/Charts/PieRadarChartViewBase.swift @@ -829,7 +829,7 @@ open class PieRadarChartViewBase: ChartViewBase let location = recognizer.location(in: self) let high = self.getHighlightByTouchPoint(location) - self.highlightValue(high) + self.highlightValue(highlight: high, callDelegate: true) } }