Tooltip and URL display..

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
raj_jfree
Posts: 20
Joined: Tue Sep 29, 2009 8:32 am
antibot: No, of course not.

Tooltip and URL display..

Post by raj_jfree » Fri Oct 23, 2009 11:40 am

Hi,

when i am creating a chart and using
ChartUtilities.writeChartAsJPEG(out, jfreechart, 600, 400);
to display tools tips and url are not displayed.
but when i store the image to file system and write it back its working.



final File file = new File(request.getRealPath("/BarChart.png"));

ChartUtilities.saveChartAsPNG(file, jfreechart, 600, 400, info);

PrintWriter writer = response.getWriter();
writer.println("<HTML>");
writer.println("<HEAD><TITLE>Bar Chart</TITLE><script type=\"text/JavaScript\" src=\"overlib.js\"></script></HEAD>");
writer.println("<BODY>");
ChartUtilities.writeImageMap(writer, "chart", info, true);
writer.println("<IMG SRC=\"BarChart.png\" " + "WIDTH=\"600\" HEIGHT=\"400\" BORDER=\"0\" USEMAP=\"#chart\">");
writer.println("</BODY>");
writer.println("</HTML>");
writer.close();



is there any way of showing tooltips and url without storing it to the filesystem.

help me out ...

Locked