Hi all,
I’m trying to create a 2D pie chart for my iPad application. I’m using the Image Type: Filled combined with Fill Amount and the Z rotation.
I’ve got the chart working just as it should and the wedges lines up perfectly. See image for reference:
What I want now, is the user to be able to touch the wedges to display a column of statistics for that given wedge. I.e.: touching the blue wedge displays the statistics for that wedge etc.
Thing is, that since I’m using an image with “Filled” as image type for each of the wedges, they “stack” up over one another. In my image above, I’ve selected the blue wedge in the editor, which lays over both the white and red wedge. So when I run my application, it’ll always be the last wedge in the pie chart, that is touched even though the user actually touches the other wedges.
For the wedge, I’m implementing the IPointerClickHandler interface to track clicks/touches on the wedge.
Is there any way to, sort of, “ignore” the “bounds” of the image and only be able to click on the actual fill of the wedge?
Thanks a lot in advance.
All the best,
Bo