I was thinking of creating a small experiment for an information visualization (infovis) application. For example, there could be a pie chart where you can click parts of the chart to show updated data on some other, lets say, bar chart on the same display. Should I create buttons that show the different parts of the pie chart (so that the graphics can be clicked) or can I embed mouse events to parts of the non-rectangular graphics (maybe an image map of sorts) or is there a smarter way of doing this? Which classes and/or methods should I look into to get started?
A concrete, but simple, example could be a 2-part pie chart where there is a blue slice for water (71 % of surface on Earth) and a brown slice for ground (29 % of surface on Earth). When you click the blue slice, I dunno, maybe the application tells about H₂O.