Question

I create a graph with 2 piechart plot like donutchart: First is "pieChart", second is "centerDonut".

centerDonut has only 1 slice, with white color, value 1.

if user press a slice of "pieChart" it works well with the right index. If user press a slice of "centerDonut", methods return the istance of "pieChart" instead of "centerDonut".

Why happens that? I try with [self.centerDonut zPosition:1], but it doesn't work.

-(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];
}
Was it helpful?

Solution

Set the pieInnerRadius on the pieChart to make it a ring.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top