Get Index Of Slice Selected on PieChart?


#1

Hi, maybe this is a basic question, but I can’t find my solution. I’m using PieChart demo, and trying to do something similar. What I need, is when a slice is selected from the pie, I need to know what was the index selected. Method selectedSliceIndex it’s not working… Is there a method to overwrite to call everytime a slice is selected? Thank you


#2

Hi Beaker,

The property selectedSliceIndex should be working, but it sounds like you are looking for the delegate method sChart:toggledSelectionForRadialPoint:inSeries:atPixelCoordinate: anyway.

Jan

 


#3

Thank you very much, That’s exactly what I need…