Not really a feature, but a suggestion.
I have been adding tooltips to an XYLineChart but
frequently the tooltip did not match the point that I
was hovering over.
Eventually I realised that the XYSeries was sorting
the data and wrote a routine to sort my tooltips in
the same way. (Increasing X values then decreasing Y
values?).
Finally, I found that the XYSeries had a separate
constructor that tells it not to sort the data and I
went back to my original code.
Going back over the documentation I see that it does
mention that the data is sorted unless you
specifically tell it not to, so it was totally my
fault. However, I think it would be helpful to add a
couple of lines to the tooltip documentation to point
out this issue and to recommend that the data is
unsorted if you plan to generate your own tooltips.
Logged In: YES
user_id=112975
Thanks for the suggestion. I've added a note to the
JFreeChart Developer Guide.
Regards,
Dave Gilbert
JFreeChart Project Leader