Skip to content

Commit 5e020a8

Browse files
committed
Animating the wrong axis for the starting point
1 parent 197245f commit 5e020a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Charts/Classes/Renderers/LineChartRenderer.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public class LineChartRenderer: LineRadarRenderer
195195
if cur == nil { return }
196196

197197
// let the spline start
198-
CGPathMoveToPoint(cubicPath, &valueToPixelMatrix, CGFloat(cur.x), CGFloat(cur.x * phaseY))
198+
CGPathMoveToPoint(cubicPath, &valueToPixelMatrix, CGFloat(cur.x), CGFloat(cur.y * phaseY))
199199

200200
for j in (_xBounds.min + 1).stride(through: _xBounds.range + _xBounds.min, by: 1)
201201
{

0 commit comments

Comments
 (0)