{"action":"created","issue":{"url":"https://api.github.com/repos/swimlane/ngx-charts/issues/498","repository_url":"https://api.github.com/repos/swimlane/ngx-charts","labels_url":"https://api.github.com/repos/swimlane/ngx-charts/issues/498/labels{/name}","comments_url":"https://api.github.com/repos/swimlane/ngx-charts/issues/498/comments","events_url":"https://api.github.com/repos/swimlane/ngx-charts/issues/498/events","html_url":"https://github.com/swimlane/ngx-charts/issues/498","id":247776569,"node_id":"MDU6SXNzdWUyNDc3NzY1Njk=","number":498,"title":"[ngx-charts-line-chart] timeline: throws error when changing [results] Input() with [timeline] active.","user":{"login":"sjdemoor","id":16191409,"node_id":"MDQ6VXNlcjE2MTkxNDA5","avatar_url":"https://avatars1.githubusercontent.com/u/16191409?v=4","gravatar_id":"","url":"https://api.github.com/users/sjdemoor","html_url":"https://github.com/sjdemoor","followers_url":"https://api.github.com/users/sjdemoor/followers","following_url":"https://api.github.com/users/sjdemoor/following{/other_user}","gists_url":"https://api.github.com/users/sjdemoor/gists{/gist_id}","starred_url":"https://api.github.com/users/sjdemoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjdemoor/subscriptions","organizations_url":"https://api.github.com/users/sjdemoor/orgs","repos_url":"https://api.github.com/users/sjdemoor/repos","events_url":"https://api.github.com/users/sjdemoor/events{/privacy}","received_events_url":"https://api.github.com/users/sjdemoor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-08-03T17:17:05Z","updated_at":"2018-08-06T00:03:24Z","closed_at":null,"author_association":"NONE","body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here\r\n```\r\n\r\n**Current behavior**\r\nWhen refreshing [results] Input data -- and a [timeline] is actively filtering -- console throws a series of errors (example below), and chart does not render.\r\n\r\n`Error: <path> attribute d: Expected number, \"MNaN,121.99666093…\".`\r\n\r\n**Expected behavior**\r\nShould be able to refresh data between active timeline series and another data series.\r\n\r\n**Reproduction of the problem**\r\nhttps://plnkr.co/edit/TnzQ1c8BgW0qko6sbgOF?p=preview\r\n\r\nSelect a [timeline] range, and then click the `Toggle Data` button.\r\n\r\nNote: `Toggle Data` allows you to refresh the [results] data -- unless a timeline range has been selected.\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nUnrecoverable error.\r\n\r\n**Please tell us about your environment:**\r\nOSx, WebStorm, Webpack\r\n\r\n* **ngx-charts version:** 6.0.0\r\n\r\n* **Angular version:** 4.1.2\r\n\r\n* **Browser:** [all]\r\nChrome Version 59.0.3071.115, Safari Version 10.1.2 (12603.3.8)\r\n\r\n* **Language:** [TypeScript 2.2.1]\r\n"},"comment":{"url":"https://api.github.com/repos/swimlane/ngx-charts/issues/comments/410558091","html_url":"https://github.com/swimlane/ngx-charts/issues/498#issuecomment-410558091","issue_url":"https://api.github.com/repos/swimlane/ngx-charts/issues/498","id":410558091,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDU1ODA5MQ==","user":{"login":"puranzhang","id":9508376,"node_id":"MDQ6VXNlcjk1MDgzNzY=","avatar_url":"https://avatars2.githubusercontent.com/u/9508376?v=4","gravatar_id":"","url":"https://api.github.com/users/puranzhang","html_url":"https://github.com/puranzhang","followers_url":"https://api.github.com/users/puranzhang/followers","following_url":"https://api.github.com/users/puranzhang/following{/other_user}","gists_url":"https://api.github.com/users/puranzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/puranzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puranzhang/subscriptions","organizations_url":"https://api.github.com/users/puranzhang/orgs","repos_url":"https://api.github.com/users/puranzhang/repos","events_url":"https://api.github.com/users/puranzhang/events{/privacy}","received_events_url":"https://api.github.com/users/puranzhang/received_events","type":"User","site_admin":false},"created_at":"2018-08-06T00:03:24Z","updated_at":"2018-08-06T00:03:24Z","author_association":"NONE","body":"This issue in our case appeared to be: when we flush with new data that contain `value: 0`, this error emerged. Out temporary hack is to replace `0` with `0.000001`(_essentially some small enough value_), and that solved the issue."}}
{"actor":{"display_login":"puranzhang"}}