{"url":"https://api.github.com/gists/1364304","forks_url":"https://api.github.com/gists/1364304/forks","commits_url":"https://api.github.com/gists/1364304/commits","id":"1364304","node_id":"MDQ6R2lzdDEzNjQzMDQ=","git_pull_url":"https://gist.github.com/1364304.git","git_push_url":"https://gist.github.com/1364304.git","html_url":"https://gist.github.com/mbostock/1364304","files":{"pie.js":{"filename":"pie.js","type":"text/javascript","language":"JavaScript","raw_url":"https://gist.githubusercontent.com/mbostock/1364304/raw/8384a408615ecf7f80e441c517f3c99286060891/pie.js","size":432,"truncated":false,"content":"d3.mbostock.pie = function() {\n  var pie = {},\n      parent,\n      data;\n\n  var svg = d3.create(\"svg:svg\");\n\n  function redraw() {\n    return pie;\n  }\n\n  pie.data = function(x) {\n    if (!arguments.length) return data;\n    data = x;\n    return redraw();\n  };\n\n  pie.parent = function(x) {\n    if (!arguments.length) return parent;\n    parent = x ? svg.remove() : d3.select(parent).adopt(svg);\n    return pie;\n  };\n\n  return pie;\n};\n","encoding":"utf-8"}},"public":true,"created_at":"2011-11-14T16:09:40Z","updated_at":"2015-09-28T01:38:41Z","description":"Prototype Chart Template (WIP)","comments":0,"user":null,"comments_enabled":true,"comments_url":"https://api.github.com/gists/1364304/comments","owner":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false},"forks":[],"history":[{"user":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"6d391bc1995deb8943c93322280422e301e6b385","committed_at":"2011-11-14T16:09:49Z","change_status":{"total":2,"additions":1,"deletions":1},"url":"https://api.github.com/gists/1364304/6d391bc1995deb8943c93322280422e301e6b385"},{"user":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"1fef427d6634f3a178a7ee1a25a07c38fad606b4","committed_at":"2011-11-14T16:09:40Z","change_status":{"total":25,"additions":25,"deletions":0},"url":"https://api.github.com/gists/1364304/1fef427d6634f3a178a7ee1a25a07c38fad606b4"}],"truncated":false}