{"action":"opened","issue":{"url":"https://api.github.com/repos/i-schuetz/SwiftCharts/issues/36","labels_url":"https://api.github.com/repos/i-schuetz/SwiftCharts/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/i-schuetz/SwiftCharts/issues/36/comments","events_url":"https://api.github.com/repos/i-schuetz/SwiftCharts/issues/36/events","html_url":"https://github.com/i-schuetz/SwiftCharts/issues/36","id":104446133,"number":36,"title":"possible division by 0","user":{"login":"camill-a","id":2509963,"avatar_url":"https://avatars.githubusercontent.com/u/2509963?v=3","gravatar_id":"","url":"https://api.github.com/users/camill-a","html_url":"https://github.com/camill-a","followers_url":"https://api.github.com/users/camill-a/followers","following_url":"https://api.github.com/users/camill-a/following{/other_user}","gists_url":"https://api.github.com/users/camill-a/gists{/gist_id}","starred_url":"https://api.github.com/users/camill-a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camill-a/subscriptions","organizations_url":"https://api.github.com/users/camill-a/orgs","repos_url":"https://api.github.com/users/camill-a/repos","events_url":"https://api.github.com/users/camill-a/events{/privacy}","received_events_url":"https://api.github.com/users/camill-a/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-02T10:10:13Z","updated_at":"2015-09-02T10:10:13Z","closed_at":null,"body":"Line 214 in ChartPointLineTrackerLayer.swift . If your plot is a constant line with all the same Y values then it's 0, (I get NaN value and it doesnt update the tracker informations)\r\n`\r\n                    // calculate y scalar\r\n                    let pxYDiff = fabs(secondModel.screenLoc.y - firstModel.screenLoc.y);\r\n                    let scalarYDiff = p2.y.scalar - p1.y.scalar;\r\n                    -----> let factorY = CGFloat(scalarYDiff) / pxYDiff <------\r\n                    let currentYPx = fabs(intersection.y - firstModel.screenLoc.y)\r\n                    let currentYScalar = Double(currentYPx * factorY) + p1.y.scalar\r\n`\r\n"}}