ToolTips for XYLineChart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
jwhitney
Posts: 1
Joined: Tue Jun 22, 2004 2:39 am
Location: Boston, MA, USA
Contact:

ToolTips for XYLineChart

Post by jwhitney » Tue Jun 22, 2004 2:43 am

Hi,

I've been trying to get tooltips on a chart that I created with ChartFactory.createXYLineChart.

I've implemented my own instance of XYToolTipGenerator, that looks up Tool tips in a java.util.Map. I then call XYLineAndShapeRenderer.setToolTipGenerator on one of my tool tip generator objects.

However, the tool tips never display, and the generateToolTip method is never called. I tried walking my way through the source code to see who would call my method, but I quickly got confused.

Can anyone help?

Thanks,
Jon

nicky
Posts: 44
Joined: Mon Apr 05, 2004 1:45 am
Location: Brisbane, Australia

Post by nicky » Tue Jun 22, 2004 3:00 am

Hi Jon,

I was also going to use ToolTips for my XYLineChart, and got the ToolTips working, but with my version of JFreeChart (0.9.18 ) they only work for the first line that is generated. I don't think that it has been extended further in the last two releases (I could be wrong though). As ToolTips are not that important for my project, I just decided to leave them out. I'm not sure if anyone else has been able to get them to work for all of their lines on the chart.

Good Luck!

Nicky

Locked