Skip to content

Commit

Permalink
Always start with previous xIndex to avoid clipping the cubic too soon
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Feb 23, 2016
1 parent 31bf942 commit 796b2f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Charts/Classes/Renderers/LineChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class LineChartRenderer: LineRadarChartRenderer
else { return }

let diff = (entryFrom == entryTo) ? 1 : 0
let minx = max(dataSet.entryIndex(entry: entryFrom) - diff, 0)
let minx = max(dataSet.entryIndex(entry: entryFrom) - diff - 1, 0)
let maxx = min(max(minx + 2, dataSet.entryIndex(entry: entryTo) + 1), entryCount)

let phaseX = animator.phaseX
Expand Down

0 comments on commit 796b2f8

Please sign in to comment.