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
Can not display tooltip
Re: Can not display tooltip
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
Thanks for the help.
-avijit
Re: Can not display tooltip
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...
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...