Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Source/Charts/Renderers/LineChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,8 @@ open class LineChartRenderer: LineRadarRenderer
}

var firstPoint = true

let shouldDisconnectSegments = dataSet.drawCirclesEnabled && !isDrawSteppedEnabled

let path = CGMutablePath()
for x in stride(from: _xBounds.min, through: _xBounds.range + _xBounds.min, by: 1)
Expand All @@ -409,9 +411,12 @@ open class LineChartRenderer: LineRadarRenderer
y: CGFloat(e1.y * phaseY))
.applying(valueToPixelMatrix)

if firstPoint || shouldDisconnectSegments {
path.move(to: startPoint)
}

if firstPoint
{
path.move(to: startPoint)
firstPoint = false
}
else
Expand Down