The difference between WSPieChartView and WSPieChartWithMotion are below:
- Drawing the pie sector on the UIView in
WSPieChartView. But in the
WSPieChartWithMotionViewis CALayer. Extracted drawn content to different part.
- Adding open and close animation on
WSPieChartWithMotionView.So when you press the pie, you can find it open smoothly. But
WSPieChartViewdoesn’t have this function.
- Adding transformation on the pie when update the datas. This is only support on
- Removing the indicator from
WSPieChartWithMotionView. Maybe I will add it later.
Key points when you use WSPieChartWithMotion:
- Carefully using the shadow. Because it will create shadow on both view and layers.Detail information you can find on the comments of class.
- Switching data. The datas must have same titles. But they can be different order.
The codes are just tested on simulator, not on device.