问题
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