From ef91bd589500729a5ba3f18c60f340ab176dbe8a Mon Sep 17 00:00:00 2001 From: Maxim Zabelin Date: Mon, 29 Jun 2015 14:46:43 +0600 Subject: [PATCH] The line charts have started to properly display balloon markers in case several sequential data sets are presented on the same chart (two data sets are sequential if the last element of the 1st set is also the first element of the 2nd one e.g. [1,2,3] and [3,4,5]). --- Charts/Classes/Charts/BarLineChartViewBase.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Charts/Classes/Charts/BarLineChartViewBase.swift b/Charts/Classes/Charts/BarLineChartViewBase.swift index 5170b492c2..ba95d50a60 100644 --- a/Charts/Classes/Charts/BarLineChartViewBase.swift +++ b/Charts/Classes/Charts/BarLineChartViewBase.swift @@ -1314,10 +1314,9 @@ public class BarLineChartViewBase: ChartViewBase, UIGestureRecognizerDelegate { var vals = [ChartSelectionDetail](); - var pt = CGPoint(); - for (var i = 0, count = _data.dataSetCount; i < count; i++) { + var pt = CGPoint(); var dataSet = _data.getDataSetByIndex(i); if (dataSet === nil || !dataSet.isHighlightEnabled) {