Skip to content

Commit

Permalink
apply the same logic for getMarkerPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxuan30 committed Jul 16, 2015
1 parent baca6dd commit 2f75778
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Charts/Classes/Charts/BarLineChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,8 @@ public class BarLineChartViewBase: ChartViewBase, UIGestureRecognizerDelegate
{
var bd = _data as! BarChartData
var space = bd.groupSpace
var j = _data.getDataSetByIndex(dataSetIndex)!.entryIndex(entry: entry, isEqual: true)

var x = CGFloat(j * (_data.dataSetCount - 1) + dataSetIndex) + space * CGFloat(j) + space / 2.0
var x = CGFloat(entry.xIndex * (_data.dataSetCount - 1) + dataSetIndex) + space * CGFloat(entry.xIndex) + space / 2.0

xPos += x
}
Expand Down

0 comments on commit 2f75778

Please sign in to comment.