Any third library to draw a Half Pie Chart (Semi Circle) with Animation in iOS?

4.1k views Asked by At

Anybody knows any third library with permission granted for using it? I need to draw a Half Pie Chart like this, with an animation applied.

I want to get something like this:

enter image description here

This is what you get with HUChart but it is drawn without an Animation at all.

I found others libraries which let you draw the Pie Chart animated, but not the Half part of the Chart.

https://github.com/kevinzhow/PNChart

https://github.com/danielgindi/ios-charts

2

There are 2 answers

0
santibernaldo On BEST ANSWER

I got it applying some changes to the example project of MagicPie

Its a third library that works with Core Animation.

Changing the properties 'startAngle' and 'endAngle' of the the property 'PieLayer' in the UIView where the Pies are drawn.

self.layer.startAngle = 0;
self.layer.endAngle = 180;
0
Santu C On

You may use third party control- HUChart

You may change code for draw with animation. Hope this will help you