核心绘图切片被选中记录索引与 2 饼图



>我创建了一个带有 2 个饼图的图表,如甜甜圈图:第一个是"饼图",第二个是"中心甜甜圈"。

中心甜甜圈只有 1 片,白色,值 1。

如果用户按下"饼图"的一部分,它与正确的索引配合得很好。如果用户按下"中心甜甜圈"的一部分,方法将返回"饼图"而不是"中心甜甜圈"。

为什么会这样呢?我尝试使用[self.centerDonut zPosition:1],但它不起作用。

-(void)initPlot {
[self configureHost];
[self configureGraph];
 //in configureChart I configure and add the pieChart and then the centerDonuts
[self configureChart];
 //I have 2 label in storyboard over the graph, set value of them and display.
[self totLabelsOverAll];
}

pieChart上设置pieInnerRadius以使其成为环。

最新更新