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