Can not display tooltip

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Avijit

Can not display tooltip

Post by Avijit » Tue Sep 03, 2002 10:35 pm

Hi :

I am can not display tooltips. I have used the following code to display tooltips(actually I looked at JFreeChartDemo.java for this) in a verticalXYbarchart and also for a timeseries chart, which will display the value in x_axis and Y-axis (like the one that we see in demo for VerticalXYbar chart):

IntervalXYDataset xyData = data;
chart = ChartFactory.createVerticalXYBarChart(supplierName, "Date", "Rating", xyData, false);
chart.setBackgroundPaint(new GradientPaint(0, 0, Color.white, 1000, 0, Color.blue));
XYPlot plot = chart.getXYPlot();
XYItemRenderer renderer = plot.getItemRenderer();
renderer.setToolTipGenerator(new TimeSeriesToolTipGenerator("d-MMM-yyyy", "0.00"));

I can't find out weather I am missing out something. Please help me.
-avijit

Avijit

Re: Can not display tooltip

Post by Avijit » Thu Sep 05, 2002 7:12 pm

I have saved the chart as .jpeg and displaying it on an html. In this scenario, is it possible for me to display the tooltips?

Thanks for the help.
-avijit

Richard Atkinson

Re: Can not display tooltip

Post by Richard Atkinson » Thu Sep 05, 2002 8:44 pm

Avijit,

Tooltips in HTML are now possible using the new image map facilities in version 0.9.3. See this thread for more details

http://www.object-refinery.com/phorum-3 ... 431&t=4431

and

http://homepage.ntlworld.com/richard_c_ ... jfreechart

for an example WAR file.

Regards,
Richard...

Locked