作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
在 ios 中饼图 CorePlot 的以下代码:
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 轴...!帮帮我....!
最佳答案
执行此操作的最佳方法是完全移除轴。
graph.axisSet = nil;
关于ios - CorePlot 饼图 : How to hide X and Y axes?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9850805/
我是一名优秀的程序员,十分优秀!