{"action":"opened","issue":{"url":"https://api.github.com/repos/danielgindi/Charts/issues/2713","repository_url":"https://api.github.com/repos/danielgindi/Charts","labels_url":"https://api.github.com/repos/danielgindi/Charts/issues/2713/labels{/name}","comments_url":"https://api.github.com/repos/danielgindi/Charts/issues/2713/comments","events_url":"https://api.github.com/repos/danielgindi/Charts/issues/2713/events","html_url":"https://github.com/danielgindi/Charts/issues/2713","id":249900356,"number":2713,"title":"Showing actual value IN ADDITION to percentage, in a pie slice?","user":{"login":"seenoevo","id":8109158,"avatar_url":"https://avatars1.githubusercontent.com/u/8109158?v=4","gravatar_id":"","url":"https://api.github.com/users/seenoevo","html_url":"https://github.com/seenoevo","followers_url":"https://api.github.com/users/seenoevo/followers","following_url":"https://api.github.com/users/seenoevo/following{/other_user}","gists_url":"https://api.github.com/users/seenoevo/gists{/gist_id}","starred_url":"https://api.github.com/users/seenoevo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seenoevo/subscriptions","organizations_url":"https://api.github.com/users/seenoevo/orgs","repos_url":"https://api.github.com/users/seenoevo/repos","events_url":"https://api.github.com/users/seenoevo/events{/privacy}","received_events_url":"https://api.github.com/users/seenoevo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-13T21:31:29Z","updated_at":"2017-08-13T21:31:29Z","closed_at":null,"body":"Currently my PieChart looks like this:\r\n\r\n![untitled](https://user-images.githubusercontent.com/8109158/29253497-6c7b28da-8033-11e7-82d9-b998c7bcda8f.png)\r\n\r\nwhere I do the standard code:\r\n\r\n```\r\nlet dataEntry = PieChartDataEntry(value: costs, label: date)\r\n     \r\n dataEntries.append(dataEntry)\r\n\r\nchartDataSet = PieChartDataSet(values: dataEntries, label: \"\")\r\n            \r\nchartData = PieChartData(dataSet: chartDataSet)\r\n\r\npieChartView.data = chartData\r\n```\r\n\r\nThe library does its calculations to determine the \"percentage\" of each pie slice based on the total `costs`.\r\n\r\nHow can I show the actual `costs` Double value in addition to the percentage in the slice?\r\n\r\nFor example, the `costs` value for the label `2017` is **100.0** and the `costs` value for the label `2016` is **50.0**.\r\n\r\nHow can I show those 2 values in the pie slices near its labels also?"}}
{"actor":{"display_login":"seenoevo"}}