I'm currently using iOS-Charts (https://github.com/danielgindi/ios-charts) in order to present a pie chart. I got it working, and can highlight it and whatnot. But I need to place icons next to these pies that are presented. So I'd like to place an UIImageView
outside the pie chart, but in the "middle" of each corresponding pie. Check the image for clarification. Is there a simple way to do this? This also needs to be dynamic, of course, so I can't just place them in the storyboard.
I can get how much of a circle each pie consists of, in degrees or percentage, but I don't know how to use this in order to get positions to place the UIImageView
. Any suggestions?
Edit: Forgot the image duh