how to draw 3D pie chart using core-plot in ipad? [closed]

混江龙づ霸主 提交于 2020-01-24 09:48:04

问题


I have to draw 3D pie chart in ipad using core-plot API .how can i do it ? Please advise .


回答1:


Core Plot is 2-D only. You can create simulated 3-D effects on pie charts using shadows and/or an overlay fill. See the Plot Gallery example app for some samples.




回答2:


Have a look at the BNPieChart. It is a openSouce.
Code Sample

BNPieChart *chart = [[[BNPieChart alloc] initWithFrame:frame] autorelease];
[chart addSlicePortion:0.1 withName:@"Orange"];
[chart addSlicePortion:0.2 withName:@"Fandango"];
[chart addSlicePortion:0.1 withName:@"Blue"];
[chart addSlicePortion:0.1 withName:@"Cerulean"];
[chart addSlicePortion:0.3 withName:@"Green"];
[chart addSlicePortion:0.1 withName:@"Yellow"];
[chart addSlicePortion:0.1 withName:@"Pink"];

Reference for Code



来源:https://stackoverflow.com/questions/7977557/how-to-draw-3d-pie-chart-using-core-plot-in-ipad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!