{"action":"created","issue":{"url":"https://api.github.com/repos/gionkunz/chartist-js/issues/783","repository_url":"https://api.github.com/repos/gionkunz/chartist-js","labels_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/783/labels{/name}","comments_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/783/comments","events_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/783/events","html_url":"https://github.com/gionkunz/chartist-js/issues/783","id":174712079,"number":783,"title":"NaN for Piechart with [0,0] as series-data","user":{"login":"skuhnow","id":2838405,"avatar_url":"https://avatars.githubusercontent.com/u/2838405?v=3","gravatar_id":"","url":"https://api.github.com/users/skuhnow","html_url":"https://github.com/skuhnow","followers_url":"https://api.github.com/users/skuhnow/followers","following_url":"https://api.github.com/users/skuhnow/following{/other_user}","gists_url":"https://api.github.com/users/skuhnow/gists{/gist_id}","starred_url":"https://api.github.com/users/skuhnow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skuhnow/subscriptions","organizations_url":"https://api.github.com/users/skuhnow/orgs","repos_url":"https://api.github.com/users/skuhnow/repos","events_url":"https://api.github.com/users/skuhnow/events{/privacy}","received_events_url":"https://api.github.com/users/skuhnow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gionkunz/chartist-js/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/gionkunz/chartist-js/milestones/15","html_url":"https://github.com/gionkunz/chartist-js/milestones/0.9.9","labels_url":"https://api.github.com/repos/gionkunz/chartist-js/milestones/15/labels","id":1842486,"number":15,"title":"0.9.9","description":"","creator":{"login":"gionkunz","id":2203704,"avatar_url":"https://avatars.githubusercontent.com/u/2203704?v=3","gravatar_id":"","url":"https://api.github.com/users/gionkunz","html_url":"https://github.com/gionkunz","followers_url":"https://api.github.com/users/gionkunz/followers","following_url":"https://api.github.com/users/gionkunz/following{/other_user}","gists_url":"https://api.github.com/users/gionkunz/gists{/gist_id}","starred_url":"https://api.github.com/users/gionkunz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gionkunz/subscriptions","organizations_url":"https://api.github.com/users/gionkunz/orgs","repos_url":"https://api.github.com/users/gionkunz/repos","events_url":"https://api.github.com/users/gionkunz/events{/privacy}","received_events_url":"https://api.github.com/users/gionkunz/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2016-06-22T08:03:23Z","updated_at":"2016-09-07T06:32:40Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-09-02T08:57:54Z","updated_at":"2016-09-07T06:33:49Z","closed_at":null,"body":"I have a dynamically genereated Piechart with a series with two values. In the case of both values 0 I expect and get no chart, but I also get some errors in my console.\r\n\r\n`\r\nnew Chartist.Pie('.ct-chart', {\r\n    series: [0,0]\r\n}, {});\r\n`\r\n\r\n> Error: <path> attribute d: Expected number, \"MNaN,NaNA395,395,…\".\r\n> Error: <text> attribute dx: Expected length, \"NaN\".\r\n> Error: <text> attribute dy: Expected length, \"NaN\".\r\n> Error: <path> attribute d: Expected number, \"MNaN,NaNA395,395,…\".\r\n> Error: <text> attribute dx: Expected length, \"NaN\".\r\n> Error: <text> attribute dy: Expected length, \"NaN\".\r\n"},"comment":{"url":"https://api.github.com/repos/gionkunz/chartist-js/issues/comments/245188180","html_url":"https://github.com/gionkunz/chartist-js/issues/783#issuecomment-245188180","issue_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/783","id":245188180,"user":{"login":"gionkunz","id":2203704,"avatar_url":"https://avatars.githubusercontent.com/u/2203704?v=3","gravatar_id":"","url":"https://api.github.com/users/gionkunz","html_url":"https://github.com/gionkunz","followers_url":"https://api.github.com/users/gionkunz/followers","following_url":"https://api.github.com/users/gionkunz/following{/other_user}","gists_url":"https://api.github.com/users/gionkunz/gists{/gist_id}","starred_url":"https://api.github.com/users/gionkunz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gionkunz/subscriptions","organizations_url":"https://api.github.com/users/gionkunz/orgs","repos_url":"https://api.github.com/users/gionkunz/repos","events_url":"https://api.github.com/users/gionkunz/events{/privacy}","received_events_url":"https://api.github.com/users/gionkunz/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T06:33:49Z","updated_at":"2016-09-07T06:33:49Z","body":"I guess we should check whether all values are 0 and then remove the values when creating the chart. Creating a chart with an empty values array, does not cause any errors. For the moment I suggest you're passing an empty array if all values are 0."}}
{"actor":{"display_login":"gionkunz"}}