I have used Jfreechart 1.0.13 for generating the bar chart using spring mvc. I am using
ChartUtilities.writeChartAsJPEG(response.getOutputStream(), jfreechart1, 400, 400);
to display the image in the browser. Where can I set tool tip?
I tried the following but it does not work:
CategoryPlot categoryplot = (CategoryPlot) jfreechart.getPlot();
BarRenderer barrenderer = (BarRenderer) categoryplot.getRenderer();
barrenderer.setBaseToolTipGenerator(new StandardCategoryToolTipGenerator());
final ChartRenderingInfo info = new ChartRenderingInfo(new StandardEntityCollection());
I'm rendering chart as images using jsp. Tooltips are shown when I display the graph using chart frame, but not is the web application. Can anyone suggest how I can solve this problem?