{"action":"created","issue":{"url":"https://api.github.com/repos/IonicaBizau/node-cli-pie/issues/9","repository_url":"https://api.github.com/repos/IonicaBizau/node-cli-pie","labels_url":"https://api.github.com/repos/IonicaBizau/node-cli-pie/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/IonicaBizau/node-cli-pie/issues/9/comments","events_url":"https://api.github.com/repos/IonicaBizau/node-cli-pie/issues/9/events","html_url":"https://github.com/IonicaBizau/node-cli-pie/issues/9","id":170070017,"number":9,"title":"Items with a value of 0 still show up on chart","user":{"login":"giodamelio","id":441646,"avatar_url":"https://avatars.githubusercontent.com/u/441646?v=3","gravatar_id":"","url":"https://api.github.com/users/giodamelio","html_url":"https://github.com/giodamelio","followers_url":"https://api.github.com/users/giodamelio/followers","following_url":"https://api.github.com/users/giodamelio/following{/other_user}","gists_url":"https://api.github.com/users/giodamelio/gists{/gist_id}","starred_url":"https://api.github.com/users/giodamelio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giodamelio/subscriptions","organizations_url":"https://api.github.com/users/giodamelio/orgs","repos_url":"https://api.github.com/users/giodamelio/repos","events_url":"https://api.github.com/users/giodamelio/events{/privacy}","received_events_url":"https://api.github.com/users/giodamelio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-09T02:47:12Z","updated_at":"2016-08-09T03:36:25Z","closed_at":null,"body":"If I add an item with a value of 0 to a pie chart it still shows up as a thin sliver of the chart.\r\n\r\nExample code:\r\n\r\n```javascript\r\nvar Pie = require(\"cli-pie\");\r\n\r\nvar p = new Pie(10, [\r\n  { label: \"Water\", value: 70},\r\n  { label: \"Land\", value: 30 },\r\n  { label: \"Air\", value: 0 }\r\n], {\r\n    legend: true\r\n});\r\n\r\nconsole.log(p.toString()\r\n```\r\n\r\nExample output:\r\n\r\n![2016-08-08-194637_532x381_scrot](https://cloud.githubusercontent.com/assets/441646/17502956/e1da3f00-5da0-11e6-9243-1f4fb09ba80b.png)\r\n"},"comment":{"url":"https://api.github.com/repos/IonicaBizau/node-cli-pie/issues/comments/238444758","html_url":"https://github.com/IonicaBizau/node-cli-pie/issues/9#issuecomment-238444758","issue_url":"https://api.github.com/repos/IonicaBizau/node-cli-pie/issues/9","id":238444758,"user":{"login":"giodamelio","id":441646,"avatar_url":"https://avatars.githubusercontent.com/u/441646?v=3","gravatar_id":"","url":"https://api.github.com/users/giodamelio","html_url":"https://github.com/giodamelio","followers_url":"https://api.github.com/users/giodamelio/followers","following_url":"https://api.github.com/users/giodamelio/following{/other_user}","gists_url":"https://api.github.com/users/giodamelio/gists{/gist_id}","starred_url":"https://api.github.com/users/giodamelio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giodamelio/subscriptions","organizations_url":"https://api.github.com/users/giodamelio/orgs","repos_url":"https://api.github.com/users/giodamelio/repos","events_url":"https://api.github.com/users/giodamelio/events{/privacy}","received_events_url":"https://api.github.com/users/giodamelio/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T03:36:25Z","updated_at":"2016-08-09T03:36:25Z","body":"Adding `if (cItem.value === 0) return;` after [`lib/index.js` line 202](https://github.com/IonicaBizau/node-cli-pie/blob/master/lib/index.js#L202) seems to fix this, but don't know enough about the rendering function to have any clue what other effects that might have."}}
{"actor":{"display_login":"giodamelio"}}