Skip to content

Commit

Permalink
Rebased master
Browse files Browse the repository at this point in the history
  • Loading branch information
jjatie committed Mar 9, 2019
1 parent 4d027bb commit 57bb7a8
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 118 deletions.
4 changes: 3 additions & 1 deletion Source/Charts/Highlight/ChartHighlighter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ open class ChartHighlighter : NSObject, IHighlighter
axis: YAxis.AxisDependency
) -> CGFloat {
var distance = CGFloat.greatestFiniteMagnitude

for high in closestValues where high.axis == axis
{
let tempDistance = abs(getHighlightPos(high: high) - y)
Expand All @@ -159,6 +159,8 @@ open class ChartHighlighter : NSObject, IHighlighter
distance = tempDistance
}
}

return distance
}

internal func getHighlightPos(high: Highlight) -> CGFloat
Expand Down
Loading

0 comments on commit 57bb7a8

Please sign in to comment.