Skip to content

Commit

Permalink
Fixed first value not display bug (ChartsOrg#3857 , ChartsOrg#3848)
Browse files Browse the repository at this point in the history
  • Loading branch information
ooba committed Feb 25, 2019
1 parent cf36285 commit 7ee29db
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ extension BarLineScatterCandleBubbleRenderer.XBounds: Sequence {
}

public mutating func next() -> Int? {
guard value < bounds.max else { return nil }
value += 1
guard value < bounds.max + 1 else { return nil }
defer { value += 1 }
return value
}
}
Expand Down

0 comments on commit 7ee29db

Please sign in to comment.