3
下面的代碼餅圖CorePlot在IOS:CorePlot餅圖:如何隱藏X和Y軸?
CPTGraphHostingView *hostingView = [[CPTGraphHostingView alloc] initWithFrame:self.view.bounds];
[self.view addSubview:hostingView];
graph = [[CPTXYGraph alloc] initWithFrame:self.view.bounds];
hostingView.hostedGraph = graph;
CPTPieChart *pieChart = [[CPTPieChart alloc] init];
pieChart.dataSource = self;
pieChart.pieRadius = 100.0;
pieChart.identifier = @"PieChart1";
pieChart.startAngle = M_PI_4;
pieChart.sliceDirection = CPTPieDirectionCounterClockwise;
self.pieData= [NSMutableArray arrayWithObjects:[NSNumber numberWithDouble:90.0],
[NSNumber numberWithDouble:20.0],
[NSNumber numberWithDouble:30.0],
[NSNumber numberWithDouble:40.0],
[NSNumber numberWithDouble:50.0], [NSNumber numberWithDouble:60.0], nil];
[graph addPlot:pieChart];
[pieChart release];
即輸出不能掩蓋在餅圖x和y軸....! 我需要隱藏X和Y軸......! 幫我....!
非常感謝你......! – Dinesh 2012-03-26 05:06:09
@EricSkroch嗨,你可以看看我的問題嗎?非常感謝。 http://stackoverflow.com/questions/25997224/the-axis-is-drawn-under-the-plot-in-core-plot – Pegah 2014-09-23 15:05:11