{"action":"created","issue":{"url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1163","labels_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1163/labels{/name}","comments_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1163/comments","events_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1163/events","html_url":"https://github.com/PhilJay/MPAndroidChart/issues/1163","id":114274102,"number":1163,"title":"Pie Chart - Data set angles","user":{"login":"MarcoMauricio","id":1630884,"avatar_url":"https://avatars.githubusercontent.com/u/1630884?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcoMauricio","html_url":"https://github.com/MarcoMauricio","followers_url":"https://api.github.com/users/MarcoMauricio/followers","following_url":"https://api.github.com/users/MarcoMauricio/following{/other_user}","gists_url":"https://api.github.com/users/MarcoMauricio/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcoMauricio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcoMauricio/subscriptions","organizations_url":"https://api.github.com/users/MarcoMauricio/orgs","repos_url":"https://api.github.com/users/MarcoMauricio/repos","events_url":"https://api.github.com/users/MarcoMauricio/events{/privacy}","received_events_url":"https://api.github.com/users/MarcoMauricio/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-30T13:54:10Z","updated_at":"2015-11-06T17:44:00Z","closed_at":"2015-11-06T17:44:00Z","body":"I needed a pie chart with 3 entries in the data set so that when i touch the chart it rotates to the correct data( This means it starts at data[0] -> click -> spin to data[1] -> click -> spin to data[2] -> click -> spin to data[0]). \r\n\r\nThe solution i've implemented goes something like this :\r\nSTART_OFFSET = 95;\r\n_index0= absoluteAngles[0] - (drawAngles[0] / 2) - START_OFFSET ;\r\n_index1= absoluteAngles[1] - (drawAngles[1] / 2) - START_OFFSET ;\r\n_pendingPieOffset = absoluteAngles[2] - (drawAngles[2] / 2) - START_OFFSET;\r\n\r\nAnd here are where the problems start. As you can see the START_OFFSET that I needed to give was  a result of testing the offsets needed for it to center in the correct slice. I am not saying that this is wrong in any way, since it's explicit that the rotation angle by default is 270º but it still keeps happening if I set it to 0. But it should be explicit in the commentaries that  you should take in consideration.\r\n\r\nNow comes the following : \r\nI populated the PieDataSet with 7%,80% and 9%, but when I get the angles it corresponds to 9%,80% and 7%. Is there any way to give feedback for this ?"},"comment":{"url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/comments/154482584","html_url":"https://github.com/PhilJay/MPAndroidChart/issues/1163#issuecomment-154482584","issue_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1163","id":154482584,"user":{"login":"MarcoMauricio","id":1630884,"avatar_url":"https://avatars.githubusercontent.com/u/1630884?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcoMauricio","html_url":"https://github.com/MarcoMauricio","followers_url":"https://api.github.com/users/MarcoMauricio/followers","following_url":"https://api.github.com/users/MarcoMauricio/following{/other_user}","gists_url":"https://api.github.com/users/MarcoMauricio/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcoMauricio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcoMauricio/subscriptions","organizations_url":"https://api.github.com/users/MarcoMauricio/orgs","repos_url":"https://api.github.com/users/MarcoMauricio/repos","events_url":"https://api.github.com/users/MarcoMauricio/events{/privacy}","received_events_url":"https://api.github.com/users/MarcoMauricio/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T17:44:00Z","updated_at":"2015-11-06T17:44:00Z","body":"http://stackoverflow.com/questions/33480176/mpandroidchart-piechart-angles"}}