{"action":"created","issue":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/914","labels_url":"https://api.github.com/repos/mesosphere/marathon/issues/914/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/marathon/issues/914/comments","events_url":"https://api.github.com/repos/mesosphere/marathon/issues/914/events","html_url":"https://github.com/mesosphere/marathon/pull/914","id":52906457,"number":914,"title":"Task health pie chart in application list view","user":{"login":"sttts","id":730123,"avatar_url":"https://avatars.githubusercontent.com/u/730123?v=3","gravatar_id":"","url":"https://api.github.com/users/sttts","html_url":"https://github.com/sttts","followers_url":"https://api.github.com/users/sttts/followers","following_url":"https://api.github.com/users/sttts/following{/other_user}","gists_url":"https://api.github.com/users/sttts/gists{/gist_id}","starred_url":"https://api.github.com/users/sttts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sttts/subscriptions","organizations_url":"https://api.github.com/users/sttts/orgs","repos_url":"https://api.github.com/users/sttts/repos","events_url":"https://api.github.com/users/sttts/events{/privacy}","received_events_url":"https://api.github.com/users/sttts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mlunoe","id":1097941,"avatar_url":"https://avatars.githubusercontent.com/u/1097941?v=3","gravatar_id":"","url":"https://api.github.com/users/mlunoe","html_url":"https://github.com/mlunoe","followers_url":"https://api.github.com/users/mlunoe/followers","following_url":"https://api.github.com/users/mlunoe/following{/other_user}","gists_url":"https://api.github.com/users/mlunoe/gists{/gist_id}","starred_url":"https://api.github.com/users/mlunoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlunoe/subscriptions","organizations_url":"https://api.github.com/users/mlunoe/orgs","repos_url":"https://api.github.com/users/mlunoe/repos","events_url":"https://api.github.com/users/mlunoe/events{/privacy}","received_events_url":"https://api.github.com/users/mlunoe/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2014-12-26T15:02:48Z","updated_at":"2015-01-07T07:52:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mesosphere/marathon/pulls/914","html_url":"https://github.com/mesosphere/marathon/pull/914","diff_url":"https://github.com/mesosphere/marathon/pull/914.diff","patch_url":"https://github.com/mesosphere/marathon/pull/914.patch"},"body":"![](https://pbs.twimg.com/media/B5ykMqvIIAAIP45.png)\r\n\r\n![](http://i57.tinypic.com/21ajss3.jpg)"},"comment":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/comments/68989168","html_url":"https://github.com/mesosphere/marathon/pull/914#issuecomment-68989168","issue_url":"https://api.github.com/repos/mesosphere/marathon/issues/914","id":68989168,"user":{"login":"apuckey","id":479676,"avatar_url":"https://avatars.githubusercontent.com/u/479676?v=3","gravatar_id":"","url":"https://api.github.com/users/apuckey","html_url":"https://github.com/apuckey","followers_url":"https://api.github.com/users/apuckey/followers","following_url":"https://api.github.com/users/apuckey/following{/other_user}","gists_url":"https://api.github.com/users/apuckey/gists{/gist_id}","starred_url":"https://api.github.com/users/apuckey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apuckey/subscriptions","organizations_url":"https://api.github.com/users/apuckey/orgs","repos_url":"https://api.github.com/users/apuckey/repos","events_url":"https://api.github.com/users/apuckey/events{/privacy}","received_events_url":"https://api.github.com/users/apuckey/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T07:52:58Z","updated_at":"2015-01-07T07:52:58Z","body":"Sure:\r\n```\r\ndiff --git a/src/main/resources/assets/js/components/PieComponent.jsx b/src/main/resources/assets/js/components/PieComponent.jsx\r\nindex 01c6fe4..f9fb6b6 100644\r\n--- a/src/main/resources/assets/js/components/PieComponent.jsx\r\n+++ b/src/main/resources/assets/js/components/PieComponent.jsx\r\n@@ -35,7 +35,10 @@ define([\r\n     _renderGraph:function () {\r\n       var _this = this;\r\n       // Based in http://bl.ocks.org/mbostock/3887235\r\n-      var root = d3.select(this.getDOMNode()).append(\"g\")\r\n+      var node = d3.select(this.getDOMNode());\r\n+      node.selectAll(\"g\").remove();\r\n+\r\n+      var root = node.append(\"g\")\r\n         .attr(\"transform\", \"translate(\" +\r\n           this.props.width / 2 + \",\" + this.props.height / 2 + \")\"\r\n       );\r\n```"}}