Skip to content

Commit 19e6b43

Browse files
committed
Fix highlight arrow animation phaseY
1 parent 311db6a commit 19e6b43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Charts/Classes/Renderers/BarChartRenderer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ public class BarChartRenderer: ChartDataRendererBase
543543
let arrowWidth = set.barSpace / 2.0
544544
let arrowHeight = arrowWidth * xToYRel
545545

546-
let yArrow = y1 > -y2 ? y1 : y1;
546+
let yArrow = (y1 > -y2 ? y1 : y1) * Double(_animator.phaseY)
547547

548548
_highlightArrowPtsBuffer[0].x = CGFloat(x) + 0.4
549549
_highlightArrowPtsBuffer[0].y = CGFloat(yArrow) + offsetY

0 commit comments

Comments
 (0)