Hi
I'm trying to use the tooltips with XYLineAndShapeRenderer, and I cannot get it to work. I've made a copy of LineChartDemo6 to play with. It uses ChartFactory.createXYLineChart with tooltips = true. I've even included the statement
renderer.setToolTipGenerator(new StandardXYToolTipGenerator());
but it doesn't make any difference.
Am I doing anything wrong, or is this maybe a bug?
Any help will be appreciated
Regards
Ursula
ToolTips
ToolTips
Thanks for the suggestion. I have 2 lines, but I only want tooltips for the first line. I actually get tooltips if I use the StandardXYItemRenderer, but as mentioned in my original posting, none if I use XYLineAndShapeRenderer. I want to use the latter because I want to only have shapes for the first line.
Regards
Ursula
Regards
Ursula
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
The problem here is that the XYLineAndShapeRenderer class is incomplete. I've added support for chart entities just now, so tooltips will work in the next release (0.9.21).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

