Skip to content

Commit

Permalink
Merge pull request ChartsOrg#2568 from chiahan1123/master
Browse files Browse the repository at this point in the history
Avoid passing NaN to CoreGraphics API (Fixes ChartsOrg#1626)
fix ChartsOrg#4043, fix ChartsOrg#1626
  • Loading branch information
liuxuan30 authored Aug 7, 2019
2 parents 8c28cfa + 3aa542a commit 8a98ee2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Charts/Renderers/LineChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,8 @@ open class LineChartRenderer: LineRadarRenderer
context.setLineDash(phase: 0.0, lengths: [])
}

let x = high.x // get the x-position
let y = high.y * Double(animator.phaseY)
let x = e.x // get the x-position
let y = e.y * Double(animator.phaseY)

if x > chartXMax * animator.phaseX
{
Expand Down

0 comments on commit 8a98ee2

Please sign in to comment.