{"action":"created","issue":{"url":"https://api.github.com/repos/antvis/f2/issues/288","repository_url":"https://api.github.com/repos/antvis/f2","labels_url":"https://api.github.com/repos/antvis/f2/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/antvis/f2/issues/288/comments","events_url":"https://api.github.com/repos/antvis/f2/issues/288/events","html_url":"https://github.com/antvis/f2/issues/288","id":355052179,"node_id":"MDU6SXNzdWUzNTUwNTIxNzk=","number":288,"title":"3.2.1版本渐变色解析异常","user":{"login":"HelloSoul","id":18605743,"node_id":"MDQ6VXNlcjE4NjA1NzQz","avatar_url":"https://avatars1.githubusercontent.com/u/18605743?v=4","gravatar_id":"","url":"https://api.github.com/users/HelloSoul","html_url":"https://github.com/HelloSoul","followers_url":"https://api.github.com/users/HelloSoul/followers","following_url":"https://api.github.com/users/HelloSoul/following{/other_user}","gists_url":"https://api.github.com/users/HelloSoul/gists{/gist_id}","starred_url":"https://api.github.com/users/HelloSoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HelloSoul/subscriptions","organizations_url":"https://api.github.com/users/HelloSoul/orgs","repos_url":"https://api.github.com/users/HelloSoul/repos","events_url":"https://api.github.com/users/HelloSoul/events{/privacy}","received_events_url":"https://api.github.com/users/HelloSoul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-29T08:28:46Z","updated_at":"2018-08-30T03:05:32Z","closed_at":null,"author_association":"NONE","body":"error in parsing gradient string, please check if there are any extra whitespaces.\r\n\r\nTypeError: Failed to execute 'createLinearGradient' on 'CanvasRenderingContext2D': The provided double value is non-finite.\r\n    at i (index-769c59324d.js:3466)\r\n    at Object.parseStyle (index-769c59324d.js:3481)\r\n    at e.t.resetContext (index-769c59324d.js:2406)\r\n    at e.t.setContext (index-769c59324d.js:2400)\r\n    at e.t.draw (index-769c59324d.js:2398)\r\n    at e.drawInner (index-769c59324d.js:2564)\r\n    at e.t.draw (index-769c59324d.js:2398)\r\n    at e.drawInner (index-769c59324d.js:2564)\r\n    at e.t.draw (index-769c59324d.js:2398)\r\n    at t (index-769c59324d.js:3434)\r\n具体现象：\r\n折线图变换数据（坐标点个数由4个变成2个）后会抛出上面的异常，不知是否是数据改变导致的，\r\n渐变色代码：\r\n\t\t\tthis.chart.line().position('id*ratio').style({\r\n\t\t\t\tlineWidth: 3,\r\n\t\t\t\tstroke: 'l(0) 0:#0DC2B3 0.5:#2FD2E7 1:#3DEA95'\r\n\t\t\t}).shape('smooth');"},"comment":{"url":"https://api.github.com/repos/antvis/f2/issues/comments/417174709","html_url":"https://github.com/antvis/f2/issues/288#issuecomment-417174709","issue_url":"https://api.github.com/repos/antvis/f2/issues/288","id":417174709,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzE3NDcwOQ==","user":{"login":"HelloSoul","id":18605743,"node_id":"MDQ6VXNlcjE4NjA1NzQz","avatar_url":"https://avatars1.githubusercontent.com/u/18605743?v=4","gravatar_id":"","url":"https://api.github.com/users/HelloSoul","html_url":"https://github.com/HelloSoul","followers_url":"https://api.github.com/users/HelloSoul/followers","following_url":"https://api.github.com/users/HelloSoul/following{/other_user}","gists_url":"https://api.github.com/users/HelloSoul/gists{/gist_id}","starred_url":"https://api.github.com/users/HelloSoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HelloSoul/subscriptions","organizations_url":"https://api.github.com/users/HelloSoul/orgs","repos_url":"https://api.github.com/users/HelloSoul/repos","events_url":"https://api.github.com/users/HelloSoul/events{/privacy}","received_events_url":"https://api.github.com/users/HelloSoul/received_events","type":"User","site_admin":false},"created_at":"2018-08-30T03:05:32Z","updated_at":"2018-08-30T03:05:32Z","author_association":"NONE","body":"我这边第一次绘制render()是没有问题的，但当我改变数据的之后，坐标点个数由4个变成2个，再通过repaint()重绘时就抛出异常了，\r\n而且只有从4个数据点变到2个数据点的时候才抛异常"}}
{"actor":{"display_login":"HelloSoul"}}