We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d83cd82 commit a18da15Copy full SHA for a18da15
Charts/Classes/Renderers/LineChartRenderer.swift
@@ -440,7 +440,7 @@ public class LineChartRenderer: LineRadarChartRenderer
440
}
441
442
// create a new path
443
- for x in from + 1 ..< max(from + 1, Int(ceil(CGFloat(to - from) * phaseX + CGFloat(from))))
+ for x in (from + 1).stride(to: Int(ceil(CGFloat(to - from) * phaseX + CGFloat(from))), by: 1)
444
{
445
guard let e = dataSet.entryForIndex(x) else { continue }
446
0 commit comments