WSPieChart is ok
At present, pie chart is ok.There are two classes for pie chart, one is WSPieChartView
, another one is WSPieChartWithMotionView
.
The difference between WSPieChartView and WSPieChartWithMotion are below:
- Drawing the pie sector on the UIView in
WSPieChartView
. But in theWSPieChartWithMotionView
is 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. ButWSPieChartView
doesn’t have this function. - Adding transformation on the pie when update the datas. This is only support on
WSPieChartWithMotionView
. - 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.