Hi,
if I receive a ChartMouseEvent for a coordinate where there are n data points (from n different series), which entity is returned by getEntity()? The "top" one (i.e. the last one rendered)? Is there any way to get a list of entities hit by the click?
TIA
Andre
ChartMouseEvent#getEntity() and multiple series
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
I think it returns that last item drawn at that location. If you modify the mouseClicked() method in the ChartPanel class, you could probably have it return all entities under the mouse pointer. Someone else has asked about this before, but I haven't yet spent any time reviewing it...it sounds like a sensible enhancement though.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

