Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Avoid passing NaN to CoreGraphics API (Fixes ChartsOrg#1626)
Browse files Browse the repository at this point in the history
  • Loading branch information
chiahan1123 committed Jun 29, 2017
1 parent 6698fd3 commit 3aa542a
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 @@ -746,8 +746,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 3aa542a

Please sign in to comment.