{"action":"created","issue":{"url":"https://api.github.com/repos/nnnick/Chart.js/issues/35","labels_url":"https://api.github.com/repos/nnnick/Chart.js/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/nnnick/Chart.js/issues/35/comments","events_url":"https://api.github.com/repos/nnnick/Chart.js/issues/35/events","html_url":"https://github.com/nnnick/Chart.js/pull/35","id":12216779,"number":35,"title":"Added basic labels to Pie chart","user":{"login":"Regaddi","id":1336590,"avatar_url":"https://avatars.githubusercontent.com/u/1336590?v=3","gravatar_id":"","url":"https://api.github.com/users/Regaddi","html_url":"https://github.com/Regaddi","followers_url":"https://api.github.com/users/Regaddi/followers","following_url":"https://api.github.com/users/Regaddi/following{/other_user}","gists_url":"https://api.github.com/users/Regaddi/gists{/gist_id}","starred_url":"https://api.github.com/users/Regaddi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Regaddi/subscriptions","organizations_url":"https://api.github.com/users/Regaddi/orgs","repos_url":"https://api.github.com/users/Regaddi/repos","events_url":"https://api.github.com/users/Regaddi/events{/privacy}","received_events_url":"https://api.github.com/users/Regaddi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":63,"created_at":"2013-03-20T08:18:03Z","updated_at":"2015-06-19T16:27:15Z","closed_at":"2014-06-30T09:04:05Z","pull_request":{"url":"https://api.github.com/repos/nnnick/Chart.js/pulls/35","html_url":"https://github.com/nnnick/Chart.js/pull/35","diff_url":"https://github.com/nnnick/Chart.js/pull/35.diff","patch_url":"https://github.com/nnnick/Chart.js/pull/35.patch"},"body":"Hi!\r\nI implemented some basic labelling to the pie chart, as I missed some labels on it.\r\nThe text is rotated with the angle of the pie segment and aligns to the outer edge with a little padding of 10px. It is rendered readable, so no upside down text!\r\n\r\nYou can style the labels like the following inside the pieData:\r\n\r\n\t\tvar pieData = [\r\n\t\t\t\t{\r\n\t\t\t\t\tvalue : 30,\r\n\t\t\t\t\tcolor : \"#F38630\",\r\n\t\t\t\t\tlabel : 'Sleep',\r\n\t\t\t\t\tlabelColor : 'white',\r\n\t\t\t\t\tlabelFontSize : '16'\r\n\t\t\t\t},\r\n\t\t\t\t...\r\n\t\t\t];\r\n\r\nYou can choose just any valid css color, like HEX-Codes, RGBs or named colors.\r\n\r\nImportant to mention: I implemented this as an optional feature, so if you don't need labels, just leave them off. You can also label a segment, while not labelling another and vice versa.\r\n\r\n![Screenshot from 2013-03-20 09:13:01](https://f.cloud.github.com/assets/1336590/279699/217ea190-9136-11e2-80b2-2417c9a24e70.png)"},"comment":{"url":"https://api.github.com/repos/nnnick/Chart.js/issues/comments/113565549","html_url":"https://github.com/nnnick/Chart.js/pull/35#issuecomment-113565549","issue_url":"https://api.github.com/repos/nnnick/Chart.js/issues/35","id":113565549,"user":{"login":"tannerlinsley","id":5580297,"avatar_url":"https://avatars.githubusercontent.com/u/5580297?v=3","gravatar_id":"","url":"https://api.github.com/users/tannerlinsley","html_url":"https://github.com/tannerlinsley","followers_url":"https://api.github.com/users/tannerlinsley/followers","following_url":"https://api.github.com/users/tannerlinsley/following{/other_user}","gists_url":"https://api.github.com/users/tannerlinsley/gists{/gist_id}","starred_url":"https://api.github.com/users/tannerlinsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannerlinsley/subscriptions","organizations_url":"https://api.github.com/users/tannerlinsley/orgs","repos_url":"https://api.github.com/users/tannerlinsley/repos","events_url":"https://api.github.com/users/tannerlinsley/events{/privacy}","received_events_url":"https://api.github.com/users/tannerlinsley/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T16:27:15Z","updated_at":"2015-06-19T16:27:15Z","body":"@kiquenet Chart.js is being maintained and 2.0 is being rigorously prepped for beta release.  Please check out the v2.0-dev branch for a preview!\r\n\r\n(We appreciate the concern, but please no spam for forks :)"}}